Problem:
 Score : 100 points    Problem Statement Snuke has a grid consisting of three squares numbered 1 , 2 and 3 .
In each square, either 0 or 1 is written. The number written in Square i is s_i .  Snuke will place a marble on each square that says 1 .
Find the number of squares on which Snuke will place a marble.      Constraints  Each of s_1 , s_2 and s_3 is either 1 or 0 .         Input Input is given from Standard Input in the following format:  s_{1}s_{2}s_{3}       Output Print the answer.        Sample Input 1 101      Sample Output 1 2   A marble will be placed on Square 1 and 3 .        Sample Input 2 000      Sample Output 2 0   No marble will be placed on any square.

Solution (Python):
l = [x for x in input()]
ans = 0
if l[0] == '1':
  ans += 1
if l[1] == '1':
  ans += 1
if l[2] == '1':
  ans += 1

print(ans)

Solution (Python):
a,b,c = [int(x) for x in input()]
l = [a, b, c]
ans = 0
for i in l:
  if i == 1:
    ans += 1 
print(ans)

Solution (Python):
s = list(input())
ans = 0
for i in s:
  if i == "1":
    ans += 1
print(ans)

Solution (Python):

s = input()
print(s.count('1'))

Solution (Python):

a = input()

count = 0
for i in a:
    if i == '1':
        count += 1
print(count)

Solution (Python):
n=input()
print(n.count("1"))

Solution (Python):
N = str(input())
print (int(N[0]) +int(N[1]) + int(N[2]))

Solution (Python):
x=input()
print(x.count("1"))

Solution (Python):
text = input()
count = 0
for i in range(len(text)):
    if text[i] == "1":
        count +=1
print(count)

Solution (Python):
s = list(input())

print(s.count("1"))

Solution (Python):


N = str(input())


print (int(N[0]) +int(N[1]) + int(N[2]))

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
from sys import stdin

s = stdin.readline().rstrip()
print(s.count("1"))

Solution (Python):
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

def main():
    print(input().count("1"))

main()

Solution (Python):
ans=0
for s in list(input()):
  if s=="1":
    ans+=1
print(ans)

Solution (Python):
s = [int(s) for s in input()]
print(sum(s))

Solution (Python):

S = str(input())
ans = 0
for string in S:
    if string == "1":
        ans += 1
print(ans)

Solution (Python):
s = input()
count = 0

for i in range(0, 3):
    if s[i] == "1":
        count += 1

print(count)

Solution (Python):
s = input()
count = 0
if s[0]=='1':
    count += 1
if s[1]=='1':
    count += 1
if s[2]=='1':
    count += 1
print(count)

Solution (Python):
stage = input()
count = 0
for c in stage:
  if c == '1':
    count += 1
print(count)

Solution (Python):
s = input()
count=0
if s[0] == "1":
    count+=1
if s[1] == "1":
    count+=1
if s[2] == "1":
    count+=1
print(count)

Solution (Python):
print(sum(1 for i in input() if i == '1'))

Solution (Python):
def examA():
    s = S()
    ans = s.count("1")
    print(ans)


import sys,copy,bisect,itertools
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Solution (Python):
input_line=input()
s=list(map(int,input_line))
print(sum(s))

Solution (Python):
s = input()
ans = 0

for i in s:
  if i == '1':
    ans += 1
    
print(ans)

Solution (Python):
ls_s = [_ for _ in input()]

cnt = 0

for i in range(len(ls_s)):
    if ls_s[i] == "1":
        cnt += 1

print(cnt)

Solution (Python):

line = input()

count = 0
for i in range(len(line)):
    if line[i] == '1':
        count += 1

print(count)

Solution (Python):
line = input()
answer = 0
for i in range(0,3):
	if line[i] == "1":
		answer += 1
	else:
		continue
print(answer)

Solution (Python):
a = input()
counter=0
if a[0]=="1":counter+=1
if a[1]=="1":counter+=1
if a[2]=="1":counter+=1
print(counter)

Solution (Python):
s = list(input())
print(s.count("1"))

Solution (Python):
s = input()

ans = 0
for i in s:
  ans += int(i)
print(ans)

Solution (Python):
n = [int(x) for x in list(input())]
s = 0
if n[0] == 1:
    s = s + 1
if n[1] == 1:
    s = s + 1
if n[2] == 1:
    s = s + 1
print(s)

Solution (Python):
s=input()
print(s.count('1'))

Solution (Python):
string = str(input())
s1 = int(string[0])
s2 = int(string[1])
s3 = int(string[2])
print(s1+s2+s3)

Solution (Python):
strings = input()
cnt = 0
for s in strings:
  if s == "1":
    cnt += 1
print(cnt)

Solution (Python):
a = list(input())
c = 0
if a[0] == '1':
  c += 1
if a[1] == '1':
  c += 1
if a[2] == '1':
  c += 1

print(c)

Solution (Python):

def f():
    numstr = input()
    c = 0
    for i in numstr:
        if int(i) == 1:
            c += 1
    print(c)


f()

Solution (Python):
a = input()
count = 0

for i in range(3):
    if a[i] == "1":
        count += 1

print(count)

Solution (Python):
x = input()

counter = 0
for i in x:
    if i == '1':
        counter += 1

print(counter)

Solution (Python):
s = input()
count = s.count("1")
print(count)

Solution (Python):
a = 0
s = input()
for i in s:
    if i == '1':
        a = a + 1
print(a)

Solution (Python):
print(list(str(input())).count("1"))

Solution (Python):
s = input()
count=0
for _ in s:
  if ( _ == '1'):
    count+=1
print(count)

Solution (Python):
n=str(input())
print(n.count("1"))

Solution (Python):
print(input().count("1"))

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
s1, s2, s3 = map(int, input())

print(s1+s2+s3)

Solution (Python):
def main():
    s = list(input())
    ans = 0
    for i in s:
        ans += int(i)

    print(ans)


main()

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
a = input()
count = 0

for i in a:
    if(i == "1"):
        count+=1
print(count)

Solution (Python):
h=input()
g=0
for i in range(3):
  if h[i]=="1":
    g+=1
print(g)

Solution (Python):
s1, s2, s3 = input()
print(int(s1) + int(s2) + int(s3))

Solution (Python):
"""
0 と 1 のみから成る 3 桁の番号 s が与えられます。1 が何個含まれるかを求めてください。
"""

s = input()

n = s.count("1")
print(n)

Solution (Python):

s = [0,0,0]
n = int(input())
s[0] = n // 100
s[1] = n // 10 - 10 * s[0]
s[2] = n % 10
m = 0
for a in range(3):
    if s[a] == 1:
        m += 1
print(m)

Solution (Python):
print(sum(list(map(int, input()))))

Solution (Python):
s = list(str(input()))
ans = 0

for i in range(len(s)):
  if s[i] == '1':
    ans += 1

print(ans)

Solution (Python):
inputs = input()
count = 0
for input in inputs:
    if input == '1':
        count += 1
print(count)

Solution (Python):
ary = list(input())
cnt = 0

for i in range(len(ary)):
  if (ary[i] == '1'):
    cnt+=1

print(cnt)

Solution (Python):
print(input().count("1"))

Solution (Python):
s = input()

s1,s2,s3 = s[0:1],s[1:2],s[2:3]

i= 0 

if int(s1) == 1:
  i += 1
if int(s2) == 1:
  i += 1
if int(s3) == 1:
  i += 1
  
print(i)

Solution (Python):
n = input()

def digitSum(n):
    s = str(n)
    array = list(map(int, list(s)))
    return array

b = digitSum(n)
a = 0
c = len(b)
for i in range(c):
    if b[i] == 1:
        a+=1
    else:
        a+=0

print(a)

Solution (Python):
lists = input()
print(lists.count('1'))

Solution (Python):
s=input()
count=0
if s[0]=="1":
    count+=1
if s[1]=="1":
    count+=1
if s[2]=="1":
    count+=1
print(count)

Solution (Python):
import sys











def main():
    s = sys.stdin.readline().rstrip()
    print(s.count('1'))



if __name__ == "__main__":
    
    main()

Solution (Python):

N = input()
S = 0
for i in range (0,3):
    if N[i:i+1] == "1":
        S = S+1
print(S)

Solution (Python):
s = input()
ans = 0

for i in s:
    if i == '1':
        ans += 1
print(ans)

Solution (Python):
from sys import stdin

def main():
    a = stdin.readline().rstrip()
    counter = 0
    if a[0] == "1":
        counter += 1
    if a[1] == "1":
        counter += 1
    if a[2] == "1":
        counter += 1
    print(counter)

if __name__ == "__main__":
    main()

Solution (Python):
A = input()

ans = 0
for i in A:
    if i == "1":
        ans += 1

print(ans)

Solution (Python):
s = input()
c = 0
for i in s:
  c += int(i)
print(c)

Solution (Python):
print raw_input().count('1')

Solution (Python):
s = input()

c = 0
for st in s:
  if st == "1":
      c += 1

print(c)

Solution (Python):
print(input().count("1"))

Solution (Python):
s = input()
numbers = [int(number) for number in s]
print(numbers.count(1))

Solution (Python):
print(input().count('1'))

Solution (Python):


if __name__ == '__main__':
    s = list(input())
    cnt = 0

    for i in range(3):
        if s[i] == '1':
            cnt = cnt + 1

    print(cnt)

Solution (Python):
st = input()
c = 0
for s in st:
    if(s=='1'):
        c+=1
print(c)

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
s=str(input())
print(s.count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
a=list(input())
ans=0
for i in range(3):
  if a[i]=='1':
    ans+=1
print(ans)

Solution (Python):
s = input()
print(int(s[0]) + int(s[1]) + int(s[2]))

Solution (Python):

s = input()
sum = int(s[0]) + int(s[1]) + int(s[2])
print(sum)

Solution (Python):
print(input().count("1"))

Solution (Python):

s = input()
print(s.count('1'))

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
s = input()
print(int(s[0])+int(s[1])+int(s[2]))

Solution (Python):
x=list(map(int,input()))
print(x.count(1))

Solution (Python):
s = input()
print(int(s[0])+int(s[1])+int(s[2]))

Solution (Python):
s = str(input())
print(int(s[0])+int(s[1])+int(s[2]))

Solution (Python):
def main():
    s = list(input())
    count = 0
    for i in range(0, len(s)):
        if s[i] == '1':
            count += 1
    
    print(count)

main()

Solution (Python):
str = input()
sum = 0
for num in str:
    sum += int(num)
print(sum)

Solution (Python):
x = input()
a = list(x)
a  = [int(s) for s in x]
b = 0
for i in range(3):
    if a[i] == 1:
      b += 1
      
      
      
print(b)

Solution (Python):
s = raw_input()

print(s.count("1"))

Solution (Python):

count = input().count('1')

print(count)

Solution (Python):
count = input().count('1')
print(count)

Solution (Python):
s=input()
c = 0
for i in range(3):
    if s[i] == "1":
        c += 1
print(c)

Solution (Python):
n = input()

print(n.count('1'))

Solution (Python):
a = input()
print(a.count("1"))

Solution (Python):
s=input()
total=0
for letter in s:
    if letter=='1':
            total+=1
print(total)

Solution (Python):
print(input().count("1"))

Solution (Python):
aaa = list(input())
bag = []
if aaa[0] == "1":
    bag.append(1)
if aaa[1] == "1":
    bag.append(1)
if aaa[2] == "1":
    bag.append(1)
print(len(bag))

Solution (Python):
a = input()

print(a.count('1'))

Solution (Python):
i = input()
a = [int(i) for i in str(i)]

s = a[0]+a[1]+a[2]
print(s)

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
x = str(input())

cnt = 0

for st in x:
  if st == '1':
    cnt += 1
    
print(cnt)

Solution (Python):
s = input()
count = 0
if s[0] == "1":
    count=count+1
if s[1] == "1":
    count=count+1
if s[2] == "1":
    count=count+1

print(count)

Solution (Python):
str = input()

print(str.count('1'))

Solution (Python):
s1, s2, s3 = map(int, input())

print(s1+s2+s3)

Solution (Python):
s = str(input())

ans = 0
for i in s:
    if i == '1':
        ans += 1

print(ans)

Solution (Python):
s = input()
c = 0
for i in range(3):
    if s[i] == "1":
        c += 1
print(c)

Solution (Python):
S = input()
count = 0
for i in range(3):
    if S[i] == "1":
        count += 1
print(count)

Solution (Python):
"""
author : halo2halo
date : 24,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

N = readline().rstrip()


print(N.count('1'))

Solution (Python):
s_list = [int(num) for num in input()]

count = 0
for num in s_list:
  if num == 1:
    count += 1
print(count)

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
a = str(input())
si_1 = [a[i]=='1' for i in range(3)]
print(si_1.count(True))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
s=input()
count=0
for i in range(len(s)):
	if s[i]=="1":
		count+=1
print(count)

Solution (Python):
x = int(input())
 
a = int(x / 100)
b = int((x / 10) % 10)
c = int(x % 10)
cnt = 0
 
if a == 1:
  cnt += 1
if b == 1:
  cnt += 1
if c == 1:
  cnt += 1
print(cnt)

Solution (Python):
N = input()
print(N.count("1"))

Solution (Python):

input = int(input())

s = [0,0,0]
s[0] = int(input/100)
s[1] = int(input/10 - s[0]*10)
s[2] = int(input%10)

count=0
a=0
for i in range(3):
  
  if s[i] == 1:
    count += 1

print(count)

Solution (Python):
N=input()
print(N.count("1"))

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):

s = input()
count=0

if s[0] == "1":
    count += 1

if s[1] == "1":
    count += 1

if s[2] == "1":
    count += 1

print(count)

Solution (Python):
x = int(input())

a = int(x / 100)
b = int((x / 10) % 10)
c = int(x % 10)
cnt = 0

if a == 1:
  cnt += 1
if b == 1:
  cnt += 1
if c == 1:
  cnt += 1
print(cnt)

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
a = str(input())
si_1 = [a[i]=='1' for i in range(3)]
print(si_1.count(True))

Solution (Python):
try:
  s = str(input())
  c = 0

  if s[0]=='1':
    c += 1
  if s[1]=='1':
    c += 1
  if s[2]=='1':
    c += 1
  print(c)
except:EOFError

Solution (Python):
a = input()
print(a.count('1'))

Solution (Python):
ls = input()
count = 0
for l in ls:
  if l == '1':
    count += 1
print(count)

Solution (Python):
n = input()
res = 0
for i in n:
  res += int(i)
print(res)

Solution (Python):
a=[]
a+=input()
print(a.count('1'))

Solution (Python):
s=input()
print(s.count('1'))

Solution (Python):
S = list(input())

import collections
count = collections.Counter(S)

print(count["1"])

Solution (Python):
s = input()
count = 0
for i in s:
	if i == '1':
  		count = count + 1

print(count)

Solution (Python):
input = input()
total = 0
for element in input:
    total += int(element)

print(total)

Solution (Python):
a=input()
print(a.count("1"))

Solution (Python):
s = input()
print(sum(int(c) for c in s))

Solution (Python):
n=input()
ans = 0
for i in n:
  ans = ans + int(i)
  
print(ans)

Solution (Python):
a = str(input())
cnt = 0
for i in range(len(a)):
  if a[i] == "1":
    cnt += 1

print(cnt)

Solution (Python):
s = input()
cnt = 0
if s[0] =='1':
    cnt +=1
if s[1] == '1':
    cnt += 1
if s[2] == '1':
    cnt += 1
print(cnt)

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
s=input()
counter=0
 
for n in range(3):
  if int(s[n])==1:
    counter+=1
 
print(counter)

Solution (Python):
s=input()
a=0
for i in range (0,len(s)):
	if s[i]=="1":
		a+=1
print (a)

Solution (Python):
s=input()
counter=0

for n in range(3):
  if int(s[n])==1:
    counter+=1

print(counter)

Solution (Python):
s = input()
count = 0 
if s[0] == '1':
    count += 1
if s[1] == '1':
    count += 1
if s[2] == '1':
    count += 1
print(count)

Solution (Python):
n=str(input())
print(n.count('1'))

Solution (Python):
a = list(input())

cnt = 0
if(int(a[0]) == 1):
    cnt+=1
if(int(a[1]) == 1):
    cnt+=1
if(int(a[2]) == 1):
    cnt+=1
print (cnt)

Solution (Python):
a = str(input())

s1 = int(a[0])
s2 = int(a[1])
s3 = int(a[2])

print(s1+s2+s3)

Solution (Python):
s = list(input())

i = 0
count = 0

for i in s:
    if i == "1":
        count += 1

print(count)

Solution (Python):
print(int(input()) % 9)

Solution (Python):
s1, s2, s3 = map(int, input())
print(s1+s2+s3)

Solution (Python):
s1, s2, s3 = map(int, input())
print(s1 + s2+ s3)

Solution (Python):
print(input().count("1"))

Solution (Python):
abc = input()
x = 0
for i in range(0,3):
  if abc[i] == "1":
  	x += 1
print(x)

Solution (Python):
s = list(input());
count = 0
for char in s:
  count += int(char)

print(count)

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    print(s.count("1"))


if __name__ == '__main__':
    slove()

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
s=input()
count=0
if(s[0]=='1'):
  count+=1
if(s[1]=='1'):
  count+=1
if(s[2]=='1'):
  count+=1
print(count)

Solution (Python):
print(input().count("1"))

Solution (Python):
a = [int(c) for c in input()];print(sum(a))

Solution (Python):
cnt = 0
for a in input():
  if a == '1':
    cnt+=1
print(cnt)

Solution (Python):
S = input()
print(S.count("1"))

Solution (Python):
from collections import Counter
li = list(input())
total = 0
for s in li:
    if s == '1':
        total += 1
print(total)

Solution (Python):
print(input().count("1"))

Solution (Python):
s = [int(x) for x in input()]
print(sum(s))

Solution (Python):
print(input().count("1"))

Solution (Python):

S=input()
print(S.count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
print(len(input().replace('0', '')))

Solution (Python):
s = list(input())
total = 0
for i in s:
  if i == "1":
    total += 1
print(total)

Solution (Python):
a = input()
print(a.count("1"))

Solution (Python):
s = input()
ans = 0
if s[0]=="1":
  ans += 1
if s[1]=="1":
  ans += 1
if s[2]=="1":
  ans += 1
print(ans)

Solution (Python):
s = input().strip()
print(s.count("1"))

Solution (Python):
S = input()
ans = 0
for i in S:
    if i == '1':
        ans += 1
print(ans)

Solution (Python):
s = input()
print(sum([1 for i in range(3) if s[i]=="1"]))

Solution (Python):
n = input()
num_list = list(n)
count = 0

for i in num_list:
  if int(i) == 1:
    count += 1
  else:
    pass

print(count)

Solution (Python):
s=input()
print(s.count('1'))

Solution (Python):
mable = input()
mable_list = mable.replace("0","")
print(len(mable_list))

Solution (Python):
s = input()

count = 0

for i in range(3):
    if s[i] == '1':
        count += 1

print(count)

Solution (Python):
import re
a = input()
print(len(re.findall("1",a)))

Solution (Python):
s=str(input())
print(s.count('1'))

Solution (Python):
print(list(str(input())).count("1"))

Solution (Python):
a = list(input())
b = 0
for i in a:
    b += int(i)
print(b)

Solution (Python):
s = input()

print(len(list(filter(lambda c: c == '1', s))))

Solution (Python):
s = input()
a = [int(c) for c in s]
print(a.count(1))

Solution (Python):
s = list(map(int,list(input())))
c = sum(s)

print(c)

Solution (Python):
a = list(input())
b = 0
for i in a:
    b += int(i)
print(b)

Solution (Python):
print(input().count("1"))

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
text=input()
count=0
for i in range(3):
  if text[i]=="1":
    count+=1
print(count)

Solution (Python):
print(int(input())%9)

Solution (Python):
text=input()
count=0
if text[0]=="1":
  count+=1
if text[1]=="1":
  count+=1
if text[2]=="1":
  count+=1
print(count)

Solution (Python):
print(input().count('1'))

Solution (Python):
l = input()
ans = 0
for i in range(3):
    if l[i] == '1':
        ans += 1
print(ans)

Solution (Python):
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    s=STR()
    a=0
    for i in s:
        a+=int(i)
    print(a)
if __name__ == '__main__':
    do()

Solution (Python):
s = input()
c = 0
for i in s:
    if i == "1":
        c += 1
print(c)

Solution (Python):
s = int(input())
count = 0
if int(s / 100) == 1:
    count += 1
if int((s % 100) / 10) == 1:
    count += 1
if s % 10 == 1:
    count += 1

print(count)

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
print(int(input())%9)

Solution (Python):
print(int(input())%9)

Solution (Python):
s=list(input())
print(s.count('1'))

Solution (Python):
s=input()
ans=0
for i in range(3):
    if s[i]=='1':
        ans+=1
print(ans)

Solution (Python):
S=list(map(int,input()))
print(sum(S))

Solution (Python):
S=list(map(int,input()))
print(S.count(1))

Solution (Python):
a = input()
print(a.count('1'))

Solution (Python):
s = str(input())

print(s.count("1"))

Solution (Python):
s=int(input())
x,ball =100,0
for i in range(3):
    if s/x >=1:
        ball +=1
        s -=x
    x =x/10

print(ball)

Solution (Python):
a = input()
total = 0
for b in a:
  if b ==  '1':
    total += 1

print(total)

Solution (Python):
s = input()
counter = 0
for i in range(3):
    if int(s[i]) == 1:
        counter += 1
print(counter)

Solution (Python):
a, b, c = map(int, list(input()))
print(a+b+c)

Solution (Python):
s=str(input())
if s=="111":
  print(3)
elif s=="000":
  print(0)
elif s=="001" or s=="010" or s=="100":
  print(1)
else:
  print(2)

Solution (Python):
n = input()
a = int(n[0]) + int(n[1]) + int(n[2])
print(a)

Solution (Python):
s = list(input())
cnt = s.count('1')
print(cnt)

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
N = input()
print(N.count("1"))

Solution (Python):
a = str(input())

a = list(a)


for i in range(len(a)):
    a[i] = int(a[i])

print(sum(a))

Solution (Python):
print(list(input()).count('1'))

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    print(s.count("1"))


if __name__ == '__main__':
    slove()

Solution (Python):
s=input()
count=0
for i in range(3):
  if s[i]=="1":
    count+=1
print(count)

Solution (Python):
import sys

input = sys.stdin.readline


def main():
    print(sum([int(i) for i in input().strip()]))


if __name__ == "__main__":
    main()

Solution (Python):
s = list(input())
print(s.count("1"))

Solution (Python):
print(input().count('1'))

Solution (Python):
a = input()
a=a.replace("0","" )
print(len(a))

Solution (Python):
a, b, c = map(int, input())
print(a+b+c)

Solution (Python):
s=input()

a=0

for n in range(3):
  if s[n]=='1':
    a+=1

print(a)

Solution (Python):


a = input()
print(a.count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
l = input()

print(l.count("1"))

Solution (Python):
print(input().count("1"))

Solution (Python):
ans=0
for i in input():
    if i=="1":
        ans+=1
print(ans)

Solution (Python):
print(input().count("1"))

Solution (Python):



S = list(input())
print(S.count('1'))

Solution (Python):
import sys
input = sys.stdin.readline

S = input()
t=0
for s in S:
    if s=='1':t+=1
print(t)

Solution (Python):
a = input()
c = 0
for i in a:
  if i=="1":
    c+=1
print(c)

Solution (Python):
s = input()
s = list(s)

t = [i for i, x in enumerate(s) if x == '1']
print(len(t))

Solution (Python):
s=list(input())

print(s.count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
s = input()
count = 0
for c in s:
    if c == '1':
        count += 1
print(count)

Solution (Python):
def resolve():
    target = input()
    print(int(target[0]) + int(target[1]) + int(target[2]))
    
resolve()

Solution (Python):
a=input()
c=0
if a[0]=="1":
  c+=1
if a[1]=="1":
  c+=1
if a[2]=="1":
  c+=1
print(c)

Solution (Python):
data = input()
print(data.count('1'))

Solution (Python):
data=str(input())

print(data.count("1"))

Solution (Python):
print(list(map(lambda x:int(x),list(input()))).count(1))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):

s = input()
print(s.count("1"))

Solution (Python):

S = input()
ans = 0
for s in S:
    if s == '1':
        ans += 1
print(ans)

Solution (Python):
s=input()
print(s.count('1'))

Solution (Python):
a = input()
print(a.count("1"))

Solution (Python):
def resolve():
    
    print(input().count("1"))


resolve()

Solution (Python):
print(int(input())%9)

Solution (Python):
s = input()
counter = 0
for val in s:
    if val=='1':
        counter +=1
print(counter)

Solution (Python):
a = input()
print(a.count("1"))

Solution (Python):
print(input().count('1'))

Solution (Python):
s= input()
a= sorted(s)

if int(a[0])==1:
    print(3)
elif int(a[1])==1:
    print(2)
elif int(a[2])==1:
    print(1)
else:
    print(0)

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
s = input()

print(s.count("1"))

Solution (Python):

s = input()
counter = 0
if s[0] == "1":
    counter += 1
if s[1] == "1":
    counter += 1
if s[2] == "1":
    counter += 1
print(counter)

Solution (Python):
print(len([i for i in list(input()) if i == "1"]))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
a,b,c=input();print(int(a)+int(b)+int(c))

Solution (Python):
s1,s2,s3 = map(int, list(input()))
print(str(s1+s2+s3))

Solution (Python):
def calc(s):
    r = 0
    for i in range(len(s)):
        if s[i:i+1] == "1":
            r += 1
    return r


r = calc(input())
print(r)

Solution (Python):
a = list(map(int,input()))
print(a[0]+a[1]+a[2])

Solution (Python):
a = input().count("1")
print(a)

Solution (Python):
s = int(input())
ss = str(s)

print(ss.count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
n = input()
x = 0
for i in n:
    i_int = int(i)
    x += i_int
print(x)

Solution (Python):
s1, s2, s3 = list(input())
ret = 0
if s1 == '1':
  ret += 1
if s2 == '1':
  ret += 1
if s3 == '1':
  ret += 1

print(ret)

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
S=input()
a=0
for i in range(3):
    if S[i]=="1":
        a+=1
print(a)

Solution (Python):
s = input()
cnt = 0

for i in range(3):
  if int(s[i]) == 1:
    cnt += 1
print(cnt)

Solution (Python):
s = input()
out = 0
for i in range(0,len(s)):
  if s[i] == '1':
    out += 1;
print(out)

Solution (Python):
str = input()
count = 0

if str[0] == '1' :
     count+=1
if str[1] == '1' :
     count+=1
if str[2] == '1' :
     count+=1

print(count)

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
s = input()
ans = 0
for i in s:
    if i == '1':
        ans += 1
print(ans)

Solution (Python):
a, b, c = map(int, input())
print(a+b+c)

Solution (Python):
s=input()
sum=0
for i in range(3):
  if s[i]=='1':
    sum+=1
print(sum)

Solution (Python):
n = input()
print(n.count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
s = list(input())
cnt =0
for i in range(len(s)):
  if s[i] =='1':
    cnt +=1
print(cnt)

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
print(input().count("1"))

Solution (Python):
s=list(input())
t=list(map(int, s))
print(t[0]+t[1]+t[2])

Solution (Python):
s = input()
print(int(s[0])+int(s[1])+int(s[2]))

Solution (Python):
print(input().count('1'))

Solution (Python):
s=input()
print(s.count("1"))

Solution (Python):
n=input()
s=0
for i in n:
    s+=int(i)
print(s)

Solution (Python):
print(sum(list(map(int, input()))))

Solution (Python):
s=input();print(eval(s[0]+"+"+s[1]+"+"+s[2]))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
x=input()
word=list(x)
count=0
for i in range(3):
  if word[i]=='1':
    count+=1
print(count)

Solution (Python):
i = list(input())
cnt = 0
if int(i[0]) == 1:
  cnt += 1
if int(i[1]) == 1:
  cnt += 1
if int(i[2]) == 1:
  cnt += 1
  
print(cnt)

Solution (Python):
print(input().count('1'))

Solution (Python):
print(input().count('1'))

Solution (Python):
a,b,c = input()
d = 0
if int(a) == 1:
    d += 1
if int(b) == 1:
    d += 1
if int(c) == 1:
    d += 1
print(d)

Solution (Python):
print(input().count("1"))

Solution (Python):
numbers = input()
a = int(numbers[0])
b = int(numbers[1])
c = int(numbers[2])
print(a + b + c)

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
print(input().count("1"))

Solution (Python):
input = str(input())
input_list = [i for i in input if i == '1']
print(len(input_list))

Solution (Python):
s_list = list(input())
result = 0
for s in s_list:
    result += int(s)
print(result)

Solution (Python):




print(input().count('1'))

Solution (Python):
import collections

print(collections.Counter(input())['1'])

Solution (Python):
print(input().count("1"))

Solution (Python):
s = input(str())

count = 0

for i in s:
    if i == '1':
        count += 1
print(count)

Solution (Python):
s = input(str())
count = 0
for i in s:
    if i == '1':
        count += 1
print(count)

Solution (Python):
s = input()
s = str(s)
count = 0
for i in s:
    if i == '1':
        count += 1
print(count)

Solution (Python):
s = input()
ans = 0
for c in s:
    if c == '1':
        ans += 1
        
print(ans)

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
print(input().count('1'))

Solution (Python):
tmp = list(input())
print(tmp.count("1"))

Solution (Python):
s = input()
print(len([c for c in s if c=="1"]))

Solution (Python):
s = input()
print(s.count('1'))

Solution (Python):
print(sum(map(int, input().strip())))

Solution (Python):
s = input()
ans = 0
for i in s:
    if i == "1":
        ans += 1
print(ans)

Solution (Python):
math = list(map(int,input()))

ataino_kazu = math.count(1)
print(ataino_kazu)

Solution (Python):
s = input()
count = 0
if(s[-1] == '1'):
    count += 1
if(s[-2] == '1'):
    count += 1
if(s[-3] == '1'):
    count += 1
print(count)

Solution (Python):
s = list(input())

j = []
for ss in s:
     j.append(int(ss))
print(sum(j))

Solution (Python):
print(int(input())%9)

Solution (Python):
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
a,b,c=input()

a=int(a)
b=int(b)
c=int(c)

print(a+b+c)

Solution (Python):
S = input()
N = S.count("1")
print (N)

Solution (Python):
S = str(input())
S = list(S)
ans = 0
for i in range(3):
    if S[i] == '1':
        ans += 1

print(ans)

Solution (Python):
print(input().count("1"))

Solution (Python):
print(sum(list(map(int,list(input())))))

Solution (Python):
N = input()
print(int(N[0])+int(N[1])+int(N[2]))

Solution (Python):
print(input().count('1'))

Solution (Python):
s = input()
c = 0

for si in s:
  if si == '1': c+=1
    
print(c)

Solution (Python):
list=str(input())
print(list.count("1"))

Solution (Python):
a=input()

x=0
for i in range(3) :
  if int(a[-i])==1:
    x+=1
print(x)

Solution (Python):
s = input()
ans = 0
for i in range(3):
	if s[i] == "1":
		ans += 1
print(ans)

Solution (Python):
s = list(str(input()))
a = [int(i) for i in s]
print(a.count(1))

Solution (Python):
s = list(input())
counter = 0
for i in range(len(s)):
    if(s[i]=='1'):
        counter +=1
print(counter)

Solution (Python):
s = input()
ans = 0
if s[0] == "1": ans += 1
if s[1] == "1": ans += 1
if s[2] == "1": ans += 1
print(ans)

Solution (Python):
import sys
stdin = sys.stdin
mod = 10**9 + 7


ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

s = ns()
ans = 0
for i in range(3):
        if s[i] == '1':
                ans += 1
print(ans)

Solution (Python):
print(input().count('1'))

Solution (Python):
s = input()
n = 0
s_list = list(s)
for item in s_list:
  if item == "1":
  	n += 1

print(n)

Solution (Python):
a = list(input())
s1,s2,s3 = a[0],a[1],a[2]

count = 0
for i in range(len(a)):
    count += int(a[i])

print(count)

Solution (Python):
s = input()
print(s.count("1"))

Solution (Python):
s = input()
cnt = 0
for a in s:
	if a == "1":
		cnt += 1
print(cnt)

Solution (Python):
s=input();print(s.count('1'))