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 = 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):
def resolve():
    S = input()
    ans = 0
    if S[0] == "1":
        ans += 1
    if S[1] == "1":
        ans += 1
    if S[2] == "1":
        ans += 1
    print(ans)
resolve()

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

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

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

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

Solution (Python):
import sys
def input(): return sys.stdin.readline().strip()


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


if __name__ == "__main__":
    main()

Solution (Python):
from sys import stdin

a = stdin.readline().rstrip()

count = 0

for b in a:
  if b == "1": count = count + 1

print(count)

Solution (Python):
din =input()
out = 0
for ind in range(len(din)):
  out = out + int(din[ind])
print(out)

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

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

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
A, B, C = input()
print(int(A)+int(B)+int(C))

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

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

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

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

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

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

for i in range(len(s)):
    if s[i] == "1":
        N +=1
    else:
        pass

print(N)

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

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

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

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

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

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

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

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

c = b.count('1')
print(c)

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

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

print(cnt)

Solution (Python):


a = input()

print(a.count('1'))

Solution (Python):


a = input()

print(a.count('1'))

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

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

Solution (Python):
a = map(str, input())
counter_list = []
for n in a:
    counter_list.append(n)
print(counter_list.count('1'))

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

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

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

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

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

Solution (Python):

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

Solution (Python):
l = list(map(int, input()))
f = sum(filter(lambda x: x > 0, l))
print(f)

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

Solution (Python):




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

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

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

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

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

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

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

for char in s:
    if char == "1":
        count += 1
print(count)

Solution (Python):


S = input()

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

print(cnt)

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

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

Solution (Python):
x = list(input())
counter = 0

if x[0] == "1":
  counter += 1

if x[1] == "1":
  counter += 1

if x[2] == "1":
  counter += 1

print(counter)

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

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

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

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

Solution (Python):
table=list(str(input()))
num=0
for i in range(3):
    if int(table[i])==1:
        num+=1

print(num)

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

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

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

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

Solution (Python):
print(3-input().count('0'))

Solution (Python):
ball = input()

print(ball.count("1"))

Solution (Python):
a = int(input())
if a%3 ==2:
    print(2)
elif a%3 ==1:
    print(1)
elif a == 111:
    print(3)
else :
    print(0)

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

print(cnt)

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

Solution (Python):
st = input();
sum = int(st[0]) +int(st[1]) + int(st[2])
print(sum)

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

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

Solution (Python):

S = list(input())


print(S.count("1"))

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

Solution (Python):
Count=0
for j in input():
    if int(j) == 1:
        Count +=1
print(Count)

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

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

Solution (Python):
t = input()

ans = 0

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

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

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

output = 0 

for i in num:
    if i =='1':
        output += 1
    
print(output)

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


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

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

Solution (Python):


s = input()

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

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

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

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

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

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
st_list = list(input())
s = 0
for i in range(3):
    s += int(st_list[i])
print(s)

Solution (Python):


input_ = input()

count = 0

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

print(count)

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

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


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

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

Solution (Python):
def main():
    print(len([x for x in input() if x is "1"]))


if __name__ == '__main__':
    main()

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

Solution (Python):
def main():
    print(len([x for x in input() if x is "1"]))


if __name__ == '__main__':
    main()

Solution (Python):
def main():
    print(len([x for x in input() if x is "1"]))


if __name__ == '__main__':
    main()

Solution (Python):
def main():
    print(len([x for x in input() if x is "1"]))


if __name__ == '__main__':
    main()

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

Solution (Python):
s = input()

s = list(s)

print(s.count("1"))

Solution (Python):
a=input()

print(a.count('1'))

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

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

Solution (Python):

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

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

Solution (Python):










import sys

def input(): return sys.stdin.readline().rstrip()
def iIn(): return int(input())
def iInM(): return map(int, input().split())
def iInM1(): return map(int1, input().split())
def iInLH(): return list(map(int, input().split()))
def iInLH1(): return list(map(int1, input().split()))
def iInLV(n): return [iIn() for _ in range(n)]
def iInLV1(n): return [iIn()-1 for _ in range(n)]
def iInLD(n): return [iInLH() for _ in range(n)]
def iInLD1(n): return [iInLH1() for _ in range(n)]
def sInLH(): return list(input().split())
def sInLV(n): return [input().rstrip('\n') for _ in range(n)]
def sInLD(n): return [sInLH() for _ in range(n)]

def OutH(lst, deli=' '): print(deli.join(map(str, lst)))
def OutV(lst): print('\n'.join(map(str, lst)))

sys.setrecursionlimit(10 ** 6)

int1 = lambda x: int(x) - 1

INF = int(1e9)
MOD = 1000000007
dx = (-1, 0, 1, 0)
dy = (0, -1, 0, 1)


S = input()

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = S()
print(s.count('1'))

Solution (Python):
a, b, c = list(input())

ans = 0
if a == '1':
  ans += 1
if b == '1':
  ans += 1
if c == '1':
  ans += 1

print(ans)

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

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

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

Solution (Python):
a = list(map(int, list(input())))
count = 0

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

print(count)

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

lst = []

while value > 0:
    lst.append(value % 10)
    value //= 10

lst.reverse()
answer = 0
for i in lst:
    if i == 1:
        answer += 1

print(answer)

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

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

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

a = int(in_str[:1])
b = int(in_str[1:2])
c = int(in_str[2:])

sum = a + b + c

print(sum)

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

Solution (Python):

s = input()
i = 0

for j in range(3):

	if s[j] == '1':
		i += 1
	else:
		i += 0

print(i)

Solution (Python):
a = input()
b = list(map(int, a))
print('{}'.format(b.count(1)))

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

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

Solution (Python):






ss = input().strip()
xs = [1 for s in ss if s == '1']
print(sum(xs))

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

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

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

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

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

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

Solution (Python):
S=input()

print(S.count("1"))

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

Solution (Python):
import sys
S = list(map(int,input()))

print(S.count(1))

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

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

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

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

Solution (Python):
a=int(input())
sum=0
if a//100==1:
   sum+=1
if a//10==1 or a//10==11:
    sum+=1
if a%2==1:
    sum+=1
print(sum)

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
import math
import numpy as np
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

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

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

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

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

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

Solution (Python):
s1s2s3 = input()

print(s1s2s3.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):
num = list(input())
new = list(map(int,num))
print(sum(new))

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

print(sum)

Solution (Python):
s = input()

print(s.count("1"))

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

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

Solution (Python):


s = str(input())

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

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

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin

data = stdin.readlines()

list = [int(data[0][0]),int(data[0][1]),int(data[0][2])]

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

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

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

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

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

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

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):
num = int(input())
a = num // 100
b = (num - 100 * a) // 10
c = num - 100 * a - 10 * b

count = 0
if a == 1:
  count += 1
if b == 1:
  count += 1
if c == 1:
  count += 1
print(count)

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

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

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

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


if __name__ == "__main__":
    main()

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

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

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

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

print(A[0]+A[1]+A[2])

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

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

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

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

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

Solution (Python):
def actual(s):
    return s.count('1')

s = input()
print(actual(s))

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

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

print(ans)

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

Solution (Python):
a = input()
li = [ int(x) for x in list(str(a))]

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

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

Solution (Python):
s = input()

count = 0

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

print(count)

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

count = 0
a = s // 100
b = s // 10

if a == 1:
    count += 1
if b == 1 or b == 11:
    count += 1
if s % 2 == 1:
    count += 1

print(count)

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

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

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

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):
input_ = input()
a, b, c = int(input_[0]), int(input_[1]), int(input_[2])
print(a+b+c)

Solution (Python):
a=input()
a1=str(a)
b=0
for x in a:
  if x=='1':
    b+=1
  else:
    continue
print(b)

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

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

count = 0
for i in s:
    if i == "1":
        count += 1
    else:
        count +=0
        
print(count)

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

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

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

Solution (Python):


s = input()

count = 0

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

print(count)

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

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

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

print(a+b+c)

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

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

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

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

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

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

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

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

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

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

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

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()
l = [int(x) for x in list(str(s))]
print(sum(l))

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

print(s.count('1'))

Solution (Python):
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


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


def LS(): return list(sys.stdin.readline().rstrip().split())


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

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

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

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

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

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

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

print(c)

Solution (Python):
s = input()

result = 0
for _s in s:
    if _s == '1':
        result += 1

print(result)

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

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

num = 0

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

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

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

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

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

if __name__ == '__main__':
    main()

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

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

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

print(count)

Solution (Python):
a = input()

print(a.count("1"))

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

Solution (Python):



import os
import sys







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


if __name__ == '__main__':
    main()

Solution (Python):



import os
import sys







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


if __name__ == '__main__':
    main()

Solution (Python):
line = int(input())
cnt =0

if int(line /100) == 1:
  cnt +=1
  line -=100
if int(line/10) ==1:
  cnt +=1
  line -=10

if int(line/1) ==1:
  cnt +=1
print(cnt)

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

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

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

Solution (Python):
marbles = input()

count = 0

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

print(count)

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

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

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

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

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

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

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

Solution (Python):
from collections import Counter

s = input()
count = Counter(s)

num = count['1']
print(num)

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

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

Solution (Python):
import math

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

print(ans)

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

Solution (Python):


s = input()
counter = 0

for i in range(3):
    if int(s[i:i+1]) == 1:
        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()
out=0

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

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

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

print(res)

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

print(c)

Solution (Python):
S = input()

print(S.count("1"))

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

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

count = 0

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

print(count)

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

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

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

for x in str:
  if x=="1":
    count=count+1

print(count)

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

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):
n = list(map(int,input()))
print(n.count(1))

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

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

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

Solution (Python):
number = input()
sum = 0

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

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

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

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

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

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

k = 0

for i in a:
  if(int(i)==1):
    k += 1
    
print(k)

Solution (Python):
s = input()

print(s.count('1'))

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

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

Solution (Python):
list1 = list(input())
count = 0
if '1' in list1:
    b = True
    while b:
        list1.remove('1')
        count += 1
        b = '1' in list1
    print(count)

else:
    print(0)

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

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

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

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

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

count = 0

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

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

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

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

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

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

ans = 0

if s%10==1:
  ans += 1

s = s//10
if s%10==1:
  ans += 1

s = s//10
if s==1:
  ans += 1
  
print(ans)

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

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

print(counter)

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

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

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

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

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

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

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

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

Solution (Python):
from sys import stdin
def S(): return stdin.readline().rstrip()
    
s = list(S())

print(s.count('1'))

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

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

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

print(a+b+c)

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

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

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

Solution (Python):

i = input()
keta = list(map(int, str(i)))
print(sum(keta))

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

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

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

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

Solution (Python):
def main():
    n = map(int, list(input()))
    print(sum(n))
if __name__ == '__main__':
    main()

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

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

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

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

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

print(cnt)