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):
num=input()
a=0
 
if int(num[0])==1:
  a+=1
  
if int(num[1])==1:
  a+=1
  
if int(num[2])==1:
  a+=1
  
print(a)

Solution (Python):
math = input()
list(math)
number = int(math[0]) + int(math[1]) + int(math[2])
print(number)

Solution (Python):
math = input()
list(math)
number = int(math[0]) + int(math[1]) + int(math[2])
print(number)

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

Solution (Python):
s = input()
print(sum((s[0] == '1', s[1] == '1', s[2] == '1')))

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

print(ans)

Solution (Python):


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

main()

Solution (Python):
S = input()
S = int (S)
A = S // 100
B = (S - A*100) //10
C = S - A*100 - B*10
print ( A + B + C )

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

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

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


count = 0

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

print(count)

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):
n=input()
print(int(n[0])+int(n[1])+int(n[2]))

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

counter = 0

for i in range(len(input_val)):
    if input_val[i] == '1':
        counter+=1

print (counter)

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

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

Solution (Python):
N = input()

print(N.count("1"))

Solution (Python):
a,b,c = map(int,input())
count  = 0
for i in a,b,c:
    if i ==1:
        count = count + 1

print(count)

Solution (Python):
N=input()

print(N.count("1"))

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

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

hun = num // 100
ten = (num % 100) // 10
one = num % 10

print(hun+ten+one)

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

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

Solution (Python):
s=input().rstrip()
u=0
for i in range(3):
    u+=int(s[i])
print(u)

Solution (Python):
char = input()
list_char = list(char)

print(list_char.count('1'))

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

count = num.count('1')
print(count)

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

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

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

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

for i in lst:
  if i == "1":
    cnt += 1

print(cnt)

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

s_tuple = s[0:1],s[1:2],s[2:3]

i = 0

for sb in s_tuple:
  if sb == '1':
    i = i + 1

print(i)

Solution (Python):
a = input()
count = 0
for b in a:
  if b == "1":
    count += 1


print(count)

Solution (Python):
a = input()
count = 0
for b in a:
  if b == "1":
    count += 1


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):
X=str(input())
count=0
for i in range(len(X)):
  if X[i]=='1':
    count+=1
  else:
    pass
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()
f = 0
for i in range(3):
    if s[i] == '1':
        f = f + 1

print(f)

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

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

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

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

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

print(li.count("1"))

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

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

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

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

Solution (Python):

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

if __name__ == '__main__':
	main()

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

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

Solution (Python):

s = int(input())

a = s//100

b = (s%100)//10

c = s%10

n = a + b + c
print(n)

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

Solution (Python):
count=0
number=input()
numbers=list(number)
for i in numbers:
    if i == '1':
        count+=1
print(count)

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

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

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

print(cnt)

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

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

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

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

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

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

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

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

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

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

Solution (Python):


sss = input()

print(sss.count('1'))

Solution (Python):


sss = input()

cnt = 0
for s in sss:
  if s == '1':
    cnt += 1

print(cnt)

Solution (Python):
import numpy as np

a,b,c = input()



s = np.zeros(3)
num = 0
if a == '1':
    num = num + 1
if b == '1':
    num = num + 1
if c == '1':
    num = num + 1
print(num)

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

Solution (Python):
s = input()
print(s.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):
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):
s = str(input())
cnt = 0
for i in range(len(s)):
    if s[i] == '1':
        cnt += 1

print(cnt)

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

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

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

Solution (Python):


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

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

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

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

Solution (Python):
S=str(input())
n = len([1 for x in S if x=='1'])
print(n)

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

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

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

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

Solution (Python):

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


if '__main__' == __name__:
    resolve()

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

Solution (Python):
S = input()

total = 0

if S[0] == '1':
    total += 1

if S[1] == '1':
    total += 1

if S[2] == '1':
    total += 1

print(total)

Solution (Python):


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

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

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

Solution (Python):
n=input()
n=int(n)
og=n
flag=0
while(n>0):
    d=n%10
    n=n//10
    if(d==1):
      flag=flag+1
        
print(flag)

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

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

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

Solution (Python):
s = input()

print(s.count("1"))

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

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

Solution (Python):
suuji = list(map(int,input()))
ans = 0
for i in range(3):
    if(suuji[i]==1):
        ans += 1


print(ans)

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

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

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

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

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

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

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

Solution (Python):
lists = list(input())
total = 0
for i in lists:
    if i == '1':
        total = total + 1
    elif i == '0':
        total = total
    else:
        total = xxx

print(total)

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

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

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

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

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

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

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):
x=int(input())
if x == 0:
    print(0)
elif x == 1:
    print(1)
elif x == 10:
    print(1)
elif x == 100:
    print(1)
elif x == 11:
    print(2)
elif x == 101:
    print(2)
elif x == 110:
    print(2)
else:
    print(3)

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

Solution (Python):
a = input()
a_list = list(a)
print(a_list.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):
a = input()
if(a[0] == "1")and(a[1] == "1")and(a[2] == "1"):
    print(3)
elif (a[0] == "0")and(a[1] =="0")and(a[2] == "0"):
    print(0) 
elif(a[0] == "1")and(a[1] == "0")and(a[2] == "0"):
    print(1)
elif(a[0] == "0")and(a[1] == "1")and(a[2] == "0"):
    print(1)
elif(a[0] == "0")and(a[1] == "0")and(a[2] == "1"):
    print(1)
else:
    print(2)

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

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

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

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

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

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

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

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

print(ans)

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

Solution (Python):
print(sum(int(j) for j in input()))

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

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

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

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

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

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

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

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

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

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

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

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

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

print(li.count(1))

Solution (Python):


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

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

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

print(ans)

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

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
str = input()
str_list = list(str)
count = 0
for i in str_list:
    if i == "1":
        count+=1

print(count)

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

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

Solution (Python):
import sys
import os
import math

ii = lambda: int(sys.stdin.buffer.readline().rstrip())
il = lambda: list(map(int, sys.stdin.buffer.readline().split()))
fl = lambda: list(map(float, sys.stdin.buffer.readline().split()))
iln = lambda n: [int(sys.stdin.buffer.readline().rstrip()) for _ in range(n)]

iss = lambda: sys.stdin.buffer.readline().decode().rstrip()
sl = lambda: list(map(str, sys.stdin.buffer.readline().decode().split()))
isn = lambda n: [sys.stdin.buffer.readline().decode().rstrip() for _ in range(n)]

MOD = 10 ** 9 + 7


def main():
    if os.getenv("LOCAL"):
        sys.stdin = open("input.txt", "r")

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


if __name__ == '__main__':
    main()

Solution (Python):
s = input()

print(s.count('1'))

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

Solution (Python):
st = input()
tl = 0
for s in st[:]:
  tl += int(s)
print(tl)

Solution (Python):
s=input()

print(s.count('1'))

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

Solution (Python):
S = input()

count = 0

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

print(count)

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

for n in number:
  if n == "1":
    count += 1

print(count)

Solution (Python):
from functools import reduce
from operator import add
print(reduce(add, map(int, input())))

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

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

Solution (Python):

def main():
    lst = list(map(int, list(input())))
    print(len(list(filter(lambda e:e == 1, lst))))

main()

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

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

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

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

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

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

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

print(count)

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

if s[0] == str(1):
    counter += 1
if s[1] == str(1):
    counter += 1
if s[2] == str(1):
    counter += 1

print(counter)

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

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

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

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

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

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

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

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

Solution (Python):
s = str(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):
import collections
print(collections.Counter(list(input()))["1"])

Solution (Python):

a,b,c = (int(x) for x in input())


print(a+b+c)

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

count = 0
for stringNum in stringNumbers:
    if stringNum == '1':
        count+=1

print(count)

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

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

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

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

Solution (Python):
import io

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

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

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

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

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

print(ans)

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

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

Solution (Python):
A = input()

ans = 0

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

print(ans)

Solution (Python):
s = input()

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

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

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

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

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

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

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

Solution (Python):
a=input()

print(a.count("1"))

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

Solution (Python):
s = input()

ans = 0

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

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

print(count)

Solution (Python):
s = input()

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

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

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

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

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

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

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

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

Solution (Python):
S=input()

count=0

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

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

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

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

Solution (Python):
s1,s2,s3 = map(int,input())
a = [0]
b = 0
a.append(s1)
a.append(s2)
a.append(s3)
for i in a:
  if i == 1:
    b += 1
print(b)

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

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

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

Solution (Python):
N = int(input())  
out = N/100 + (N%100)/10 + N%10
print(int(out))

Solution (Python):
s_nums = input()
ans = 0
for nums in s_nums:
    if int(nums) == 1:
        ans += 1
print(ans)

Solution (Python):
s1,s2,s3 = map(int,input())
s = [s1,s2,s3]
S = s.count(1)
if(S == 0):
    print(0)
if(S == 1):
    print(1)
if(S == 2):
    print(2)
if(S == 3):
    print(3)

Solution (Python):
n = int(input())
print(sum([int(x) for x in list(str(n))]))

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

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

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

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

print(s.count("1"))

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

Solution (Python):

li = list(input())
l = list(map(int, li))
filtered = list(filter(lambda x:x == 1, l))
print(len(filtered))

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

Solution (Python):


def main():
    s = input()

    print(s.count('1'))

if __name__ == '__main__':
    main()

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

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

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

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

INF = float('inf')


def main():
    s = list(input())
    counter = 0
    for i in s:
        if i == '1':
            counter += 1

    print(counter)


if __name__ == '__main__':
    main()

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

Solution (Python):


s = input()

sum = 0

if s[0] == "1":
    sum = sum + 1
if s[1] == "1":
    sum = sum + 1
if s[2] == "1":
    sum += 1

print(sum)

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

Solution (Python):

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

Solution (Python):
s = input()

print(s.count("1"))

Solution (Python):
import random

masu_list = input()

print(masu_list.count('1'))

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

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

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

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

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

sum = 0
for i in range(3):
    if ((N >> i) & 1):
        sum += 1
        
print(sum)

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

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

Solution (Python):

number = list(input())

count = 0

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

print(count)

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

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

Solution (Python):
from sys import stdin

s1, s2, s3 = [int(x) for x in list(stdin.readline().rstrip())]

print(s1+s2+s3)

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

Solution (Python):
import sys
from collections import Counter

s = sys.stdin.readline().rstrip()

def main():
    c = Counter(s)
    print(c.get('1', 0))

if __name__ ==  '__main__':
    main()

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

Solution (Python):
s = input()

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

print(count)

Solution (Python):

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

Solution (Python):

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

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

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

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

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

Solution (Python):



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

Solution (Python):
import sys
import copy
import math
import bisect
import pprint
import bisect
from functools import reduce
from copy import deepcopy
from collections import deque

if __name__ == '__main__':
    a = input()
    count =0
    for i in a:
        if i == "1":
            count +=1
    print(count)

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

Solution (Python):
s = str(input())
s_list = [int(s[0]),int(s[1]),int(s[2])]
count = 0
for i in s_list:
    if i==1:
        count +=1
print(count)

Solution (Python):
def nyu():
    num1= input()

    return num1

def convert(num1):
    lst_num = list(num1)
    
    
    return lst_num

def check(lst_num):
    i =0
    sum = 0
    for x in list(lst_num):
   
   
        if(x == "1"):
            sum +=1
    print(sum)    

s = nyu()
lst = convert(s)
check(lst)

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

Solution (Python):
a = input()

cnt = 0

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

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

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

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

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

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

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

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

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

ans=0
if s1==1:
  ans+=1
if s2==1:
  ans+=1
if s3==1:
  ans+=1
print(ans)

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

print(count)

"""
count_one = lambda x: x == "1"
print(len(list(filter(count_one,s_list))))
"""

Solution (Python):
s_list = list((input()))
count_one = lambda x: x == "1"
print(len(list(filter(count_one,s_list))))

Solution (Python):
s_list = list((input()))
count_one = lambda x: x == "1"
print(len(list(filter(count_one,s_list))))

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

Solution (Python):

s = []

s = map(int, input())

print(sum(s))

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

Solution (Python):


square = list(map(int, list(input())))


print(sum(square))

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

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

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

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

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

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 = input()
if s=='000':
  print(0)
elif s=='001' or s=='010' or s=='100':
  print(1)
elif s=='011' or s=='101' or s=='110':
  print(2)
else:
  print(3)

Solution (Python):
s = input()

print(s.count("1"))

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

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

print(len([i for i in N if i == "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):
n=int(input())
print(n%9)

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

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

Solution (Python):

S = input()

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

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

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

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

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

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

Solution (Python):
def main():
    ss = list(map(int, list(input())))
    ans = sum(ss)
    print(ans)


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

ans = 0

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

Solution (Python):
import math

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

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

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

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

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

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

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

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

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

ans = 0

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

print(ans)

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

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

Solution (Python):
print(eval(input().replace("", "+").strip("+")))

Solution (Python):
l = [int(v) for v in list(input())]
print(l.count(1))

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

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

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

Solution (Python):
s = list(str(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):
import sys
from math import sqrt

input = sys.stdin.readline


def I():
    return int(input())


def MI():
    return map(int, input().split())


inf = float("inf")
mod = 10 ** 9 + 7


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


if __name__ == "__main__":
    main()

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

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

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

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

Solution (Python):
a=input()
print(a.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):
import math

s=input()

print(s.count('1'))

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

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

Solution (Python):
a=input().split('1')
b=len(a)-1
print(b)

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

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

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

Solution (Python):
data = input()

data_list = [int(i) for i in data]

print(sum(data_list))

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

Solution (Python):
n=0
for s in input().strip():
  if s=="1":
    n+=1
print(n)

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

Solution (Python):
l = list(input())
print(l.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):
l = [int(x) for x in input()]
print(sum(l))

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