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):
s = list(input())
print(s.count('1'))

Solution (Python):


print(sum([int(i) for i in input() ]))

Solution (Python):


count = 0

for char in input():
    if char == '1':
        count += 1

print(count)

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

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

Solution (Python):
a, b, c = map(int, input())
list = [a,b,c]
count = 0
for num in list:
    if num == 1:
        count += 1
print(count)

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

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

Solution (Python):
s = int(input())
while s >= 10:
    s = int(s /10) + s % 10

print(s)

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

for i in range(3):
    if (a[i] == '1'):
        ans += 1

print(ans)

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

for i in range(3):
    if (a[i] == '1'):
        ans += 1

print(ans)

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

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()

import numpy as np
ary = np.array(list(s), dtype=int)
print((ary == 1).sum())

Solution (Python):
def choise(s):
  return len(list(filter(lambda x:x=='1',s)))

if __name__ == "__main__":
    i1 = input()
    print(choise(i1))

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

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

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

Solution (Python):
s = input()

print(s.count('1'))

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

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

print(str(counter))

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

if '1' in s[0]:
    cnt += 1
if '1' in s[1]:
    cnt += 1
if '1' in s[2]:
    cnt += 1

print(cnt)

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

print(s.count('1'))

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

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

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

Solution (Python):
import re
a = input()
regex = '^(\d)(\d)(\d)'
s1 = int(re.sub(regex, r'\1', a))
s2 = int(re.sub(regex, r'\2', a))
s3 = int(re.sub(regex, r'\3', a))
i = 0
if s1 == 1:
    i += 1
if s2 == 1:
    i += 1
if s3 == 1:
    i += 1
print(i)

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

Solution (Python):
s = input()

ans = 0
for c in s:
    ans += int(c)

print(ans)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
a = list(input())
count=0
for i in a:
    if(i == '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):
s = input()
print(s.count('1'))

Solution (Python):


def main():
    s = input()

    print(s.count('1'))


if __name__ == '__main__':
    main()

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

Solution (Python):

a, b, c = map(int, input())


i = 0


if a==1:
    i += 1
    

if b==1:
    i += 1    


if c==1:
    i += 1
    

print(i)

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


abc081_a()

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

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

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

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

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

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

Solution (Python):
def main():
    print(sum(map(int, iter(input()))))


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
from collections import Counter
print(Counter(list(input()))['1'])

Solution (Python):

s = map(int, list(raw_input())) 
print sum(s)

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

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

print(num.count("1"))

Solution (Python):
s = input().strip()

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

Solution (Python):

a,b,c=map(str,input())
S = a+b+c
print(S.count("1"))

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

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

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

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

Solution (Python):

print(sum(map(int, input())))

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

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

Solution (Python):
s = input()

print(s.count('1'))

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

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

Solution (Python):
n = str(input())
count = 0
for i in range(len(n)):
  if n[i] == '1':
    count += 1
  else:
    count += 0
print(count)

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

Solution (Python):
s = input()

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

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

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

print(count)

Solution (Python):
sx=input()
s_list=list(sx)
n=0
for i in range(0,3):
        if int(s_list[i])==1:
                n+=1

print(n)

Solution (Python):
e = input().split()

tmp = e[0].replace('0', '')
print(len(tmp))

Solution (Python):
strs = input()

ans = 0
for s in strs:
  if s == "1":
    ans += 1
    
print(ans)

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

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

print(S)

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

Solution (Python):
s = input()

result = 0
if s[0] == '1':
    result += 1
if s[1] == '1':
    result += 1
if s[2] == '1':
    result += 1
print(result)

Solution (Python):
print(sum([len(c) for c in input().split("0")]))

Solution (Python):
s = input()

result = 0
if s[0] == '1':
    result += 1
if s[1] == '1':
    result += 1
if s[2] == '1':
    result += 1

print(result)

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

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

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

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

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

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

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

Solution (Python):
dat = input()
print(dat.count('1'),end="")

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

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

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

Solution (Python):
S = list(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):
str_list = list(input())
n = sum(x=="1" for x in str_list)

print(n)

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

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

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

Solution (Python):
input_s = input().count("1")

print(input_s)

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

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

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

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

print(count)

Solution (Python):
s13 = input()
l = list(s13)

print(l.count('1'))

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

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

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

print(ans)

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

Solution (Python):
s = int(input())
l = [int(x) for x in list(str(s))]

sum = 0
for i in l:
  if i == 1:
    sum += 1

print(sum)

Solution (Python):
s=input()
C=0
N=0
while C<3:
  if s[C]=="1":
    N+=1
  C+=1
print(N)

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

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

b=[int(i) for i in a]

c=0

for i in range(3):
    if(b[i]==1):
        c+=1

print(c)

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

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

Solution (Python):
a = str(input())
a_lis = list(a)
count = 0

for i in range(3):
    if int(a_lis[i]) == 1:
        count = count +1
    else:
        pass

print(count)

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

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

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

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

print(bi)

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

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

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

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

Solution (Python):


a =str( input())

char_list = list(a)

b=int( char_list[0])
c=int( char_list[1])
d=int( char_list[2])

s=b+c+d

print(s)

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

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

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

Solution (Python):
s = input()

count = 0

for ch in s:
    if ch == '1': count = count + 1

print(count)

Solution (Python):
i=input()
print(i.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):
print(sum(map(int, list(input()))))

Solution (Python):
li = [i for i in input()]
print(li.count('1'))

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

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

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

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

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

Solution (Python):
xs = [x for x in map(int, list(input())) if x == 1]
print(len(xs))

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

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

print(ans)

Solution (Python):
a = input()

cont = 0
for i in range(0, len(a)) :
  if (int(a[i]) == 1):
    cont = 1 + cont
print(cont)

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

Solution (Python):


a = int(input())
s = str(a)
print(sum(list(map(int, list(s)))))

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

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

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

n=0
for i in range(3):
    if num[i] =="1":
        n+=1
print(n)

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

Solution (Python):
import numpy as np
s=input()
print(s.count('1'))

Solution (Python):


a, b, c = map(int, list(input()));
print( a + b + c );

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


if(s[1] == "1"):
    c += 1


if(s[2] == "1"):
    c += 1

print(c)

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

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

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

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

Solution (Python):
a=int(input())
print(a%2+(a//10)%2+(a//100)%2)

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

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

Solution (Python):
char_to_int=input()

count = 0
for i in char_to_int:
  count+=int(i)
 
print(count)

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

counter = 0

for i in range(3):
  if n[i] == '1':
    counter += 1

print(counter)

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

if n % 3 == 1:
   print(1)
elif n % 3 == 2:
   print(2)
elif  n % 3 == 0 and n != 000:
   print(3)
else:
   print(0)

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

Solution (Python):
s1, s2, s3 = [int(_) for _ in (list(input()))]
print(s1+s2+s3)

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

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

Solution (Python):
s = input()

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

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

Solution (Python):
s=int(input())
ans=0
if s>=100:
    ans+=1
    s=s-100
if s>=10:
    ans+=1
    s=s-10
if s>=1:
    ans+=1
print(ans)

Solution (Python):
A=[]
a=input()
for i in a:
    A.append(i)
o=A.count("1")
print(o)

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

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

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

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

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

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

Solution (Python):


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

Solution (Python):

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

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

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

Solution (Python):


a = str(input())

print(a.count("1"))

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

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

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

print(s1 + s2 + s3)

Solution (Python):
listS=list(input())
index=0
sum=0
while index < len(listS):
    if listS[index]=="1":
        sum+=1
    index+=1
print(sum)

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

for i in range(len(masu)):
    if int(masu[i]) == 1:
        count = count + 1
   
print(count)

Solution (Python):
S=input()
count=0
for x in S:
  if(x=="1"):
    count+=1
print(count)

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

Solution (Python):
s = input()

cnt = 0
for c in s:
	if c == "1":
		cnt += 1
print(cnt)

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

Solution (Python):


n  = input()
res=0
for l in n:
  res+=int(l)
print(res)

Solution (Python):
s = str(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):
s = input()
count_s = s.count("1")
print(count_s)

Solution (Python):
s = input()

ans = 0

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

print(ans)

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

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

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

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

Solution (Python):
s = [i for i in input()]
res = 0
for i in s:
  if i == "1":
    res += 1

print(res)

Solution (Python):


string = input()
cnt = 0

for c in string:
    if c == "1":
        cnt+=1

print(str(cnt))

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(sum([int(i) for i in input()]))

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

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

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

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

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

Solution (Python):
S1,S2,S3=map(int,input())
print(S1+S2+S3)

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):
num = input()
l = [str(x) for x in list(str(num))]
l.count("1")
print(l.count("1"))

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

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

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

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

Solution (Python):
s = input()

s = list(map(int, list(s)))
print(sum(s))

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

arr = [s1, s2, s3]

print(arr.count(1))

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

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

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

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

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

Solution (Python):
a=input()
print(a.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()
count = 0
for i in s:
    if i == '1':
        count+=1
print(count)

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

Solution (Python):
s = int(input())
s3 = s % 10
s2 = (s - s3)/10%10
s1 = (s-s3-s2*10)/100
N = int(s1+s2+s3)
print(N)

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

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

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

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

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

Solution (Python):
s = input().strip()

print(s.count("1"))

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

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

Solution (Python):
print(sum([int(i) for i in list(input())]))

Solution (Python):
S = input()

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

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

Solution (Python):


def main():
    s = input()
    print(s.count('1'))

if __name__ == '__main__':
    main()

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

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

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

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):
s = input()
print(s.count("1"))

Solution (Python):
n = input()

print(n.count("1"))

Solution (Python):


from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
from string import ascii_lowercase
from functools import lru_cache
import sys
sys.setrecursionlimit(10000)
INF = float("inf")
YES, Yes, yes, NO, No, no = "YES", "Yes", "yes", "NO", "No", "no"
dy4, dx4 = [0, 1, 0, -1], [1, 0, -1, 0]


def inside(y, x, H, W):
    return 0 <= y < H and 0 <= x < W


def ceil(a, b):
    return (a + b - 1) // b


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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
s = input()

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

print(ans)

Solution (Python):
s1, s2, s3 = input()
s = [s1, s2, s3]
print(s.count('1'))

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

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

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

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

Solution (Python):
print(len(list(filter(lambda c: c == '1', input()))))

Solution (Python):

[s1, s2, s3] = list(input())
s = [s1, s2, s3]


ans = sum(map(int, s))

print(ans)

Solution (Python):

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

Solution (Python):
import sys
import math
import collections
import itertools
import array
import inspect


sys.setrecursionlimit(10000)



def chkprint(*args):
    names = {
        id(v): k
        for k, v in inspect.currentframe().f_back.f_locals.items()
    }
    print(', '.join(
        names.get(id(arg), '???') + ' = ' + repr(arg) for arg in args))



def to_bin(x):
    return bin(x)[2:]


def li_input():
    return [int(_) for _ in input().split()]




dp = None


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


main()

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

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

Solution (Python):

s = str(raw_input())
print(s.count("1"))

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

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

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

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

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

Solution (Python):
def SolveABC081A(s1,s2,s3):
    print int(s1) + int(s2) + int(s3)


s1,s2,s3 = raw_input()


SolveABC081A(s1,s2,s3)

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

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

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

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

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

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

print(input_list.count('1'))

Solution (Python):
S = input()

print(S.count("1"))

Solution (Python):
S=input()
num_list=list(S)
sum=0
for s in num_list:
    if s=='1':
        sum+=1
print(sum)

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

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

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

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

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

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

Solution (Python):

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

Solution (Python):
s = input()

print(sum(map(int,list(s))))

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):


def main():
    s = input()
    print(s.count('1'))

if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()

print(s.count("1"))

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

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

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

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

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

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

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

Solution (Python):

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

Solution (Python):
nums = input()

ans = 0
for num in nums:
    if num == '1':
        ans += 1
print(ans)

Solution (Python):
string = input()

one_counter = 0
for s in string:
  if s =="1":
    one_counter += 1

print(one_counter)

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

Solution (Python):
r = 0
for x in raw_input():
	r += int(x)
print r

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

Solution (Python):
from functools import reduce
print(reduce(lambda x, y: x+1 if y == 1 else x, [int(_) for _ in input()]))

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

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

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

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

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

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

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

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

count = 0

for s in a:
  if int(s) == 1:
    count+=1
print(count)

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

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

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

if a[0] == '1':
    cnt+=1
if a[1] == '1':
    cnt+=1
if a[2] == '1':
    cnt+=1

print(cnt)

Solution (Python):
def main():
    s = input().strip()
    print(len([1 for i in s if i == '1']))

if __name__ == '__main__':
    main()

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

Solution (Python):
import numpy as np

x = input()

y = np.array([int(x[i]) for i in range(3)])

print(len(y[y==1]))

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

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

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

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

print(count)

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

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

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

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()

lis = list()

for i in range(len(s)):
    lis.append(s[i])

print(lis.count("1"))

Solution (Python):
s = input()

lis = list()

for i in range(len(s)):
    lis.append(s[i])

print(lis.count("1"))

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

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

print(A//100+(A%100)//10+(A%100)%10)

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

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

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

Solution (Python):
from collections import Counter
c = Counter(raw_input())
print c['1']

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):
S = input()

cnt = 0
for i in S:
    if i == "1":
        cnt += 1

print(cnt)

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

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

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

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

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

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

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

Solution (Python):
a = input()
d = list(a)
c = 0
for v in d:
    if(v=='1'):
        c = c+1
print(c)

Solution (Python):


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

Solution (Python):


instr = input()

print(instr.count("1"))

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

Solution (Python):
print(sum([int(e) for e in list(input())]))

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

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

Solution (Python):

from sys import stdin

bin  = list(stdin.readline().rstrip())
one = [x for x in bin if x == '1']

print(len(one))

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

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

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

Solution (Python):


import numpy
import re
import math

def main():
	"""
	テストコード実行
	:return:
	"""
	line = input()
	char_list = list(line)
	int_list = [int(s) for s in char_list]
	count = 0
	for i in int_list:
		if i == 1:
			count += 1
	print(count)


if __name__ == '__main__':
	main()

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

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

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

Solution (Python):
S = map(int, list(input()))
print(len([s for s in S if s == 1]))

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

print (count)

Solution (Python):
s = input()

cnt=0
for a in s:
    if(a == '1'):
        cnt+=1
print(cnt)

Solution (Python):

s = input()

counter = 0
for character in s:
    if int(character) == 1:
        counter+=1

print(counter)

Solution (Python):
s = input()

cnt = 0

if(s[0] == "1"):
    cnt = cnt + 1
if(s[1] == "1"):
    cnt = cnt + 1
if(s[2] == "1"):
    cnt = cnt + 1

print(cnt)

Solution (Python):


number = raw_input()
count = 0
for i in number:
    if i == '1':
        count += 1
    elif i == '0':
        continue
    else :
        
        break

print(count)

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

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

Solution (Python):
def main():
    ans_list = list(str(input().split()))
    print(ans_list.count("1"))


if __name__ == '__main__':
    main()

Solution (Python):
args = input()
lst = [int(x) for x in list(str(args))]
print(lst.count(1))

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

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

answer = chars.count("1")
print(answer)

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

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

Solution (Python):

s = list(input())

print(s.count("1"))

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

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

Solution (Python):



ip = input()

cnt = 0

if ip[0] == "1":
    cnt += 1

if ip[1] == "1":
    cnt += 1

if ip[2] == "1":
    cnt += 1

print(cnt)

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

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

Solution (Python):

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

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

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

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