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())
count = 0
for i in range(len(s)):
  if s[i] == '1':
    count += 1
print(count)

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

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

Solution (Python):

n = input()
ans = 0
for i in range(3):
  ans += int(n[i])
print(ans)

Solution (Python):
squares = map(int, list(input().rstrip("\n")))
print(sum(squares))

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

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

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

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

Solution (Python):
text = input()

num = 0
for s in text:
  if s == "1":
    num += 1

print(num)

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

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

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

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


print(num.count("1"))

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

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

Solution (Python):
if __name__ == '__main__':
    S = map(str, input())
    count=0
    for s in S:
        if s =='1':
            count += 1
    print(count)

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

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

print(c)

Solution (Python):
N = input()
res = 0

res = N.count("1")
print(res)

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

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

Solution (Python):

n = 0
s = input()

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

print(n)

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

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

Solution (Python):
box_str = input()
box_list = [num for num in box_str]
one_count = box_list.count("1")
print(one_count)

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

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

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

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

Solution (Python):
program = input()
num1 = int(program[0])
num2 = int(program[1])
num3 = int(program[2])
print(num1 + num2 + num3)

Solution (Python):

a = list(input())
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)

Solution (Python):
a = int(input())
i=0
sum=0
while i<len(str(a)):
  if str(a)[i]=="1":
    sum=sum+1
  i=i+1
  
print(sum)

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

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

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

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

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

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

Solution (Python):
S = input()

print(S.count('1'))

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

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

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

for aa in a:
  b += int(aa)
  
print(b)

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

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):
x = input()
n = []

for i in x:
  n.append(i)
  
  nn =list( map(int,n))

j = 0
k = 0
for k in range(len(nn)):
  if nn[k]==1:
    j=j+1
print(j)

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

Solution (Python):
import sys

count = 0
for v in sys.stdin.read():
  if v == '1':
    count += 1
print(count)

Solution (Python):
stdin = input()

print(stdin.count("1"))

Solution (Python):
A = list(str(input()))



cnt = 0
for i in A:
    if int(i) == 1:
        cnt += 1

print(cnt)

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

Solution (Python):
def solve():
    s = read()
    result = think(s)
    write(result)


def read():
    return read_line(n=3)


def read_int(n):
    return list(map(int, read_line().split()[:n]))


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(s):
    return s.count('1')


def write(result):
    print(result)


if __name__ == '__main__':
    solve()

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

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

print(count)

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

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

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

Solution (Python):
from collections import Counter


s = list(input())
s_cnt = Counter(s)
print(s_cnt['1'])

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

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

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

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

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

print(bi_list.count('1'))

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

Solution (Python):
in1 = int(raw_input())
a = in1 // 100
b = (in1 - a * 100) // 10
c = in1 % 10

cnt = 0
if a == 1:
    cnt += 1
if b == 1:
    cnt += 1
if c == 1:
    cnt += 1

print cnt

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

Solution (Python):
s = input()





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

print(n)

Solution (Python):
s = input()

n = 0
for i in s:
    if int(i) == 1:
        n += 1
print(n)

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

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

count = 0

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

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

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

Solution (Python):

import sys
INF = float("inf")


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


if __name__ == '__main__':
    main()

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

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

Solution (Python):
data = [x for x in input().rstrip()]
print(data.count("1"))

Solution (Python):
data = [x for x in input().rstrip()]
print(data.count("1"))

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

Solution (Python):
input_number = list(map(int,input()))
count = 0
for number in input_number:
    if(number == 1):
        count += 1
    elif(number == 0):
        continue
print(count)

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

print(cnt)

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

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

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

Solution (Python):

s = input()

count = 0
for a in s:
    if a == '1':
        count += 1

print(count)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
sss = int(input())
a = int(sss/100)
b = int((sss-100*a)/10)
c = int((sss-100*a-10*b))
print(a+b+c)

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

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

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

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

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

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

Solution (Python):
N = int(input())
count = 0
if N >= 50:
  count+=1
  N-=100
if N >=5:
  count+=1
  N-=10
if N>0.5:
  count+=1;
print(count)

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

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

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

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

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

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

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

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

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

Solution (Python):
marbles = input()

sum = 0
for m in marbles:
  sum = sum + int(m)

print(str(sum))

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

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

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

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

Solution (Python):
print len([c for c in raw_input() if c == '1'])

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

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

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

Solution (Python):


s = [int(i) for i in input().strip()]
print(s.count(1))

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

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

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

Solution (Python):
if __name__ == '__main__':
    s = list(map(int,list(input())))

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

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

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

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

Solution (Python):

import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math






def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    s = input()
    ans = 0
    if s[0] == "1":
        ans += 1
    if s[1] == "1":
        ans += 1
    if s[2] == "1":
        ans += 1
        
    print(ans)
            	
if __name__ == "__main__":
	main()

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

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

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

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

Solution (Python):
s=str(input())
a=0
if s[0]=="1":
    a+=1
if s[1]=="1":
    a+=1
if s[-1:]=="1":
    a+=1
print(a)

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

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

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

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

Solution (Python):
S = input()

res = 0
for s in S:
    if s == "1":
        res += 1
print(res)

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

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

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

print(counter)

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):
str_=[i  for i in list(input() ) if i=="1"]
print(len(str_))

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

Solution (Python):
s = input()

print(s.count('1'))

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

n= 0
for moji in s:
  if int(moji) == 1:
    n += 1
print(n)

Solution (Python):
line = list(input())
answer = 0
for l in line:
    if l == "1":
        answer += 1
print(answer)

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

Solution (Python):
s = input()

print(s.count('1'))

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

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

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

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

print(cnt)

Solution (Python):
number = int(input())
count = 0
if number >= 50:
  count += 1
if number%100 >= 5:
  count += 1
if number%10 >= 0.5:
  count += 1
print(count)

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

Solution (Python):
s = input()

a = int(s[0])
b = int(s[1])
c = int(s[2])

print(a + b + c)

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

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

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

import sys

box = [int(i) for i in input()]
count = box.count(1)
print(count)

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

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

Solution (Python):
data = input().split()
num = data[0]
count = 0

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

print(count)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
S = list(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 i in range(0, 3):
	ans += int(S[i])
print(ans)

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

print(a)

Solution (Python):



s = input()


print(s.count('1'))

Solution (Python):
s = input()

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

print(ans)

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

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

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

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

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

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

Solution (Python):

a = str(input())
list(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):
ns = tuple(input())
cnt = 0
for n in ns:
  if(n == '1'):
    cnt += 1

print(cnt)

Solution (Python):
str = input()

out = str.count("1")
print(out)

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

cnt = 0
for i in blocks:
    if int(i) == 1:
        cnt += 1

print(cnt)

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

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

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

        cnt = cnt+1
print(cnt)

Solution (Python):
def placingMarbles():
	s = map(int,list(input()))
	count = 0
	for i in s:
		if i == 1:
			count += 1
	print(count)

placingMarbles()

Solution (Python):
b = input()
a = int(b)
s = 0
for x in range(len(b)):
    s += a % 10
    a = a // 10
print(s)

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

cou = 0
for tmp in a:
    if tmp == "1":
        cou += 1

print(cou)

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

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

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

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

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

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

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

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

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

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

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

print(ans)

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

print(int(((n / 100) + ((n % 100) / 10) + ((n % 10) / 1))))

Solution (Python):



x = input()

total = 0

if x[0] == '1':
    total += 1
    
if x[1] == '1':
    total += 1
    
if x[2] == '1':
    total += 1
    
print(total)

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

Solution (Python):

num = 0
tmp = input()
if( tmp[0] =='1'):
	num+=1
if( tmp[1] =='1'):
	num+=1
if( tmp[2] =='1'):
	num+=1
print(num)

Solution (Python):
a = int(input())
sum = 0

if a / 100 >= 1:
    sum += 1
    a = a - 100
if a / 10 >= 1:
    sum += 1
    a = a - 10
if a >= 1:
    sum += 1
print(sum)

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

cnt = 0

for c in s:
  if c == '1' :
    cnt += 1


  
print(cnt)

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

Solution (Python):


s = input()

 
def main():
    count = 0
    for i in range(3):
        
        if s[i] == '1':
            count = count + 1
 
    print(count)
 
if __name__ == '__main__':
    main()

Solution (Python):
S = input()
print("{}".format(int(S[0]) + int(S[1]) + int(S[2])))

Solution (Python):
a  = input()
b = str(a)
c = 0
for n in b:
    if n == str(1):
        c += 1
print(c)

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

Solution (Python):
n = list(str(input()))
c = 0

for i in n:
    if i == "1":
        c += 1

print(c)

Solution (Python):
data = input()
count_one = 0
for i in range(len(data)):
  num = int(data[i])
  if (num == 1):
    count_one += 1
print(count_one)

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

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

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

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

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

Solution (Python):

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

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

Solution (Python):



line = list(input())
print(line.count("1"))

Solution (Python):
s1,s2,s3 = input()
result = 0
for x in [s1,s2,s3]:
  if x == "1":
    result += 1
print(result)

Solution (Python):

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

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

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

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

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

Solution (Python):
from sys import stdin

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

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

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

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

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

Solution (Python):



in_num = input()

for n in range(len(in_num)):
    exec("s{} = int(in_num[{}])".format(n + 1, n))

print(s1 + s2 + s3)

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

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

Solution (Python):
import sys

input = sys.stdin.readline

s=input()

count =0
for value in s:
    if value == "1":
        count+=1
    else:
        continue

print(count)

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

Solution (Python):
nl = lambda: list(map(int, input().split()))
sl = lambda: input().split()
n = lambda: int(input())
s = lambda: input()

S = s()
total = 0
for c in S:
    if c == '1':
        total += 1
print(total)

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

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

Solution (Python):
a = input()

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

Solution (Python):
S = input()

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):





def main():
    
    pass

if __name__ == '__main__':
    print(input().count("1"))
    main()

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

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

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

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

cnt = 0
for i in INPUT:
    if i == 1:
        cnt = cnt + 1

print("{}".format(cnt))

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

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

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

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

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

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

Solution (Python):
def main():
    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)

if __name__ == '__main__':
    main()

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

Solution (Python):


num = input()
a = (num[0])
b = (num[1])
c = (num[2])

count = 0

if int(a) == 1:
    count += 1
if int(b) == 1:
    count += 1
if int(c) == 1:
    count += 1

print(count)

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

Solution (Python):
def main():
    inputs = input()
    score = sum([1 for s in inputs if s == "1"])
    print(score)


if __name__ == '__main__':
    main()

Solution (Python):
import sys

def input():
    return sys.stdin.readline().rstrip()

if __name__ == "__main__":
    s = input()
    print(s.count('1'))

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

Solution (Python):
a, b, c = input()
a, b, c = map(int, [a, b, c])
print(len([s for s in [a, b, c] if s == 1]))

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

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

Solution (Python):
from collections import Counter

s = input()
s = list(s)

S = Counter(s)
print(S["1"])

Solution (Python):

input_str = input()
counter = 0
for i in range(len(input_str)):
    if input_str[i] == '1':
        counter = counter + 1
print(counter)

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

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

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

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

Solution (Python):
import math

chars = list(input())


print(chars.count('1'))

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

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

print(int(c))

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

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

for i in a:
  if i != "0":
    score += 1
    
  if i == "0":
    pass

print(score)

Solution (Python):
x=int(input())
a=x//100
b=(x-(x//100)*100)//10
c=x%10
print(a+b+c)

Solution (Python):

list = int(input())

count = 0
while list > 0:
    if list%10 == 1:
        count+=1
    list = int(list / 10)

print(count)

Solution (Python):
s = input()

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

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

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

Solution (Python):
inp = input()

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

print(count)

Solution (Python):
s1,s2,s3 = map(int, input())
masu = []
masu.append(s1)
masu.append(s2)
masu.append(s3)
print(masu.count(1))

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

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

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

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

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

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

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

Solution (Python):
import re 

def i_input(): return int(input())
def s_input(): return map(int,input().split())
def l_input(): return list(map(int, input().split()))


s = input()
print(len(re.findall('1', s)))

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

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

if(b == 1):
    d = d +1
    
if(c == 1):
    d = d +1
print(d)

Solution (Python):


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

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

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

print (A.count('1'))

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

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

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

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

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

Solution (Python):











import sys
input=sys.stdin.readline
from math import floor,ceil,sqrt,factorial
from heapq import heappop, heappush, heappushpop
inf=float('inf')
mod = 10**9+7
def INT_(n): return int(n)-1
def MI(): return map(int,input().split())
def MF(): return map(float, input().split())
def MI_(): return map(INT_,input().split())
def LI(): return list(MI())
def LI_(): return [int(x) - 1 for x in input().split()]
def LF(): return list(MF())
def LIN(n:int): return [I() for _ in range(n)]
def LLIN(n: int): return [LI() for _ in range(n)]
def LLIN_(n: int): return [LI_() for _ in range(n)]
def LLI(): return [list(map(int, l.split() )) for l in input()]
def I(): return int(input())
def F(): return float(input())
def ST(): return input().replace('\n', '')
def main():
    s = ST()
    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):
s = str(input())
ans = 0
for i in s:
    if i == "1":
        ans += 1
print(ans)

Solution (Python):
from collections import defaultdict

def check(a, pre):
    ans = 0
    while a % 2 == 0:
        ans += 1
        a //= 2
        if ans == pre:
            break
    return ans


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



if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()

print(s.count('1'))

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

Solution (Python):

lst_a = list(input())
ans = 0
for i in range(3):

    if lst_a[i] == "1":
        ans += 1

print(ans)

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):
a = int(input())
print(a % 9)