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

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

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

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

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

Solution (Python):
s = 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):
import bisect,collections,copy,heapq,itertools,math,string
import sys
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())

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

Solution (Python):
import bisect,collections,copy,heapq,itertools,math,string
import sys
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())

x = S()

count = 0
for s in x:
    if s == "1":
        count += 1

print(count)

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

Solution (Python):
s1,s2,s3 = map(str, input())
counter = 0
if s1 == "1":
    counter += 1
if s2 == "1":
    counter += 1
if s3 == "1":
    counter += 1
print(counter)

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

number_list = [s1,s2,s3]

counter = 0

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

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

print(ans)

Solution (Python):

import sys
sys.setrecursionlimit(10**6)

s = list(str(input()))

ans = [1 if i == "1" else 0 for i in s]

print(sum(ans))

Solution (Python):
s = input()

if s == '111':
    print(3)
elif s == '110' or s == '101' or s == '011':
    print(2)
elif s == '100' or s == '010' or s == '001':
    print(1)
else:
    print(0)

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

print(s.count('1'))

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

print(c)

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s = input()
a, b, c = int(s[0]), int(s[1]), int(s[2])
count = 0
if a == 1:
  count+=1
if b == 1:
  count+=1
if c == 1:
  count+=1
print(count)

Solution (Python):

number = list(map(int,input()))
a = 0
for i in number:
    if i == 1:
        a = a+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):
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):
st_list = list(input())
nu_list = [int(v) for v in st_list]
count = 0
for i in range(len(nu_list)):
  if nu_list[i] == 1:
    count += 1
print(count)

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

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

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

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):
s = int(input())
l=list()
a = (s //100)
b = ((s-a*100) //10)
l.append(s //100)
l.append((s-a*100) //10)
l.append((s-a*100-b*10))
print(l.count(1))

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

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

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

Solution (Python):
A = input()

ans=int(0)

if A[0] == "1":
    ans = ans + 1

if A[1] == "1":
    ans = ans + 1

if A[2] == "1":
    ans = ans + 1

print(ans)

Solution (Python):
D = input()

A="1"
B="11"
C="101"
F="111"

if F == D:
    print(3)
    
elif B in D:
    print(2)

elif C == D:
    print(2)

elif A in D:
    print(1)

else:
    print(0)

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

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

print(count)

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

Solution (Python):

data=list(input())
c=0
for i in range(0,len(data)):
    if data[i]=='1':
        c=c+1
print(c)

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

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

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

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

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

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

print(a)

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

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

Solution (Python):
mycode = r'''




from libcpp.string cimport string as Str


import sys
readline = sys.stdin.buffer.readline 

cdef Str S = readline()[:-1] 
print(S.count(b'1'))





'''

import sys
if sys.argv[-1] == 'ONLINE_JUDGE':  
    import os
    with open('mycode.pyx', 'w') as f:
        f.write(mycode)
    os.system('cythonize -i -3 -b mycode.pyx')

import mycode

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):
i = str(input())
s1, s2, s3 = int(i[0]), int(i[1]), int(i[2])
print(int(s1+s2+s3))

Solution (Python):



if __name__ == '__main__':
    s = input()

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

    print(count)

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

Solution (Python):


mass = input()

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

ans = s1 + s2 + s3

print(ans)

Solution (Python):


s = input()
number = "1"

count = s.count(number)
print(count)

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

Solution (Python):
l = list(input())
n = len([s for s in l if s == "1" ])
print(n)

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

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

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


if __name__ == "__main__":
    main()

Solution (Python):
num_str = map(str, input().split())
num_joined = ''.join(list(num_str))
print(num_joined.count('1'))

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

Solution (Python):
num = 0
for c in input():
    if int(c) == 1:
        num += 1

print(num)

Solution (Python):

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

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

Solution (Python):
from sys import stdin
readline = stdin.buffer.readline
read = stdin.buffer.read
def s_input(): return input().rstrip()
def i_input(): return int(input().rstrip())
def i_map(): return map(int, input().rstrip().split())
def i_list(): return list(i_map())

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

if __name__ == "__main__":
    main()

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

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

Solution (Python):

import sys


def fast_input():
    return sys.stdin.readline()[:-1]

def solve(masus: str):
    masu_list = map(int, list(masus))
    bdama_count = 0
    for masu in masu_list:
        if masu == 1:
            bdama_count += 1
    return bdama_count

def main():
    result = solve(fast_input())
    print(result)

main()

Solution (Python):
import sys


def fast_input():
    return sys.stdin.readline()[:-1]

def solve(masus: str):
    masu_list = map(int, list(masus))
    bdama_count = 0
    for masu in masu_list:
        if masu == 1:
            bdama_count += 1
    return bdama_count

def main():
    result = solve(fast_input())
    print(result)

main()

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

Solution (Python):
from sys import stdin
a = [int(x) for x in list(stdin.readline().rstrip())]
y = 0

for x in a:
    if x == 1:
        y += 1

print(y)

Solution (Python):

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

print(count)

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

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

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

Solution (Python):
import sys

readline = sys.stdin.readline
MOD = 10 ** 9 + 7
INF = float('INF')
sys.setrecursionlimit(10 ** 5)


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


if __name__ == '__main__':
    main()

Solution (Python):
import sys

total = 0
for i in input():
  total += int(i)
print(total)

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

Solution (Python):

s = input()
a = [int(c) for c in s]

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

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

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

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

print(x)

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

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

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

Solution (Python):
s123 = input()

print(s123.count('1'))

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

a = str(s1 + s2 + s3)

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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 = list(input())
S = list(map(int, S))
print(sum(S))

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

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

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

Solution (Python):


a = str(int(input()))

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

print(count)

Solution (Python):


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

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

Solution (Python):



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


if __name__ == "__main__":
    main()

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

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

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

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

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

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

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

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

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

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

Solution (Python):
S1, S2, S3 = input()
counter = 0
if S1 in "1":
	counter += 1
if S2 in "1":
	counter += 1
if S3 in "1":
	counter += 1
print (counter)

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

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

for i in [0, 1, 2]:
  if s[i] == "1":
    c+=1
print(c)

Solution (Python):
S = int(input())
c = 0

if S%10 == 1:
  c += 1
if S//100 == 1:
  c += 1
if (S//10)%10 == 1:
  c += 1
print(c)

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

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

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

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

Solution (Python):

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

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

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

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

Solution (Python):
arr = [int(_) for _ in input()]
print(sum(arr))

Solution (Python):

lol=input("")
S1=int(lol[0:1])
S2=int(lol[1:2])
S3=int(lol[2:3])
Ss=[S1,S2,S3]
cnt=0
Ss.sort()
while 1 in Ss:
  cnt += 1
  del Ss[-1]
else:
  print(cnt)

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

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

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

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

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

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 = cnt + 1
    else:
        continue
print(cnt)

Solution (Python):
s = input()

print(s.count("1"))

Solution (Python):
sl = [int(x) for x in input()]
n=0
for s in sl:
  if s==1:
    n+=1

print(n)

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

Solution (Python):
a = int(input())
count = 0
b = a / 100
reserch_1 = b // 1
if (reserch_1 == 1):
    a = a - 100
    count = count + 1

c = a /10
reserch_2 = c // 1
if (reserch_2 == 1):
    a = a - 10
    count =count + 1

reserch_3 = a // 1
if(reserch_3 == 1):
    count =count + 1
print(count)

Solution (Python):
a = int(input())
count = 0
b = a / 100
reserch_1 = b // 1
if (reserch_1 == 1):
    a = a - 100
    count = count + 1

c = a /10
reserch_2 = c // 1
if (reserch_2 == 1):
    a = a - 10
    count =count + 1

reserch_3 = a // 1
if(reserch_3 == 1):
    count =count + 1
print(count)

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

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

print(ans)

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

Solution (Python):
a,b,c = input()
x = [a,b,c]
count = 0
for i in range(len(x)):
    if x[i]=="1":
        count+=1
print(count)

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

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

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

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

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

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

Solution (Python):
s = input()

ans = 0

for i in s:
  ans += int(i)

print(ans)

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

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

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

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

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

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

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

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

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

print(s.count('1'))

Solution (Python):

letters = [i for i in list(str(input())) if i == '1']

print(len(letters))

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

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

Solution (Python):
s=input()

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

Solution (Python):
s=input()

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

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

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

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

Solution (Python):



def main():
    args = list(input())
    result = args.count("1")
    print(result)


if __name__ == "__main__":
    main()

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

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

print(ans)

Solution (Python):
n_1 = 0

a = list(str(input()))
for i in a:
    if i == "1":
        n_1 += 1

print(n_1)

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

val1 = vals//100
val2 = (vals- val1*100)//10
val3 = (vals-val1*100 -val2*10)

print(val1+val2+val3)

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

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

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

Solution (Python):

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

Solution (Python):


mass=list(input())
count=0

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

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

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

print(str(count))

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

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

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

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

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

print(x.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):
val = input()
vals = list(val)

sum=0
for v in vals:
  sum += int(v)
  
print(sum)

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

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

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

print(cnt)

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

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

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

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

Solution (Python):
numList = list(input())
total = 0
for i in range(len(numList)):
  total += int(numList[i])
print(total)

Solution (Python):
s=str(input())
numbers=[]
for i in s:
    numbers.append(i)
    



count=0
for number in numbers:
    if number=='1':
        count+=1
        
print(count)

Solution (Python):









s = input()

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

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

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

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

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

Solution (Python):
a = int(input())
count = 0;
if a // 100 == 1:
  count += 1
  a -= 100
if a // 10 == 1:
  count += 1
  a -= 10
if a == 1:
  count += 1
print(count)

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

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

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

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

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

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

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

Solution (Python):

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


if __name__ == "__main__":
    main()

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.buffer.readline
sys.setrecursionlimit(10 ** 8)
INF = float('inf')
MOD = 10 ** 9 + 7


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


if __name__ == '__main__':
    main()

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

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

s1 = int(s/100)
s2 = int((s-s1*100)/10)
s3 = int((s-s1*100-s2*10))

n = 0

if s1 ==1 :
  n += 1

if s2 ==1 :
  n += 1

if s3 == 1 :
  n += 1
  
print(n)

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

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

Solution (Python):
s = input()
s1 = int(s[0])
s2 = int(s[1])
s3 = int(s[2])
ans = s1+s2+s3
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()
count = 0

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

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

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

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

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

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

Solution (Python):
import sys
sys.setrecursionlimit(4100000)
import math
import itertools
INF = float('inf')
from heapq import heapify, heappop, heappush

def main():
    S = input()

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

Solution (Python):
s = input()

print(s.count('1'))

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

Solution (Python):
import collections
print collections.Counter(raw_input())['1']

Solution (Python):
x=input()
X=list('{}'.format(x))
a=[]
for i in range(len(X)):
    a.append(int(X[i]))
A=sum(a)
print(A)

Solution (Python):
x=input()
X=list('{}'.format(x))
a=[]
for i in range(len(X)):
    a.append(int(X[i]))
A=sum(a)
print(A)

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

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

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

ans = 0
for i in range(3):
    division , mod = divmod(S, 10**(2-i))
    ans += division
    S = mod
print(ans)

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

Solution (Python):

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

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

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

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

Solution (Python):

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

print(a+b+c)

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):
str1 = input()
s_list = list(str1)
str_len = len(str1)
n = 0
for i in range(str_len):
  if 1 == int(s_list[i]):
    n = n + 1
print(n)

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

Solution (Python):
a = int(input())
ans = 0
for i in range(3):
    ans += int(a / (10 ** (2 - i)))
    a %= 10 ** (2 - i)
print(ans)

Solution (Python):

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

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


print(a+b+c)

Solution (Python):
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

    print(S.count('1'))

    return


if __name__ == '__main__':
    main()

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

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

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

Solution (Python):
s1,s2,s3 = input()
count = 0
if s1 == "1":
    count += 1
if s2 == "1":
    count += 1
if s3 == "1":
    count += 1
print(count)

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

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

print(n.count('1'))

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

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

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


def main():
    s = input().strip()

    num = 0
    for m in s:
        if int(m) == 1:
            num += 1

    print(num)


if __name__ == "__main__":
    main()

Solution (Python):
mass = input()

num = 0
for m in mass:
  if int(m) == 1:
    num += 1
    
print(num)

Solution (Python):
s = input()

cnt = 0

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

print(cnt)

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

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

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

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

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

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

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

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

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

Solution (Python):
print(sum(int(X) for X in list(input())))

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

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

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

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

print(Slist.count("1"))

Solution (Python):
s = input()

print(s.count('1'))

Solution (Python):
a=input()

print(a.count("1"))

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

result = 0
for s in abc:
  if s == '1':
    result += 1
print(result)

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

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

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

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

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

Solution (Python):
s = input().rstrip();
s = list(s);

result = 0;

if s[0] == "1":
    result += 1;

if s[1] == "1":
    result += 1;

if s[2] == "1":
    result += 1;

print(result);

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

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

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

print(a+b+c)

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

Solution (Python):


s = int(input())

sum = s // 100 + s % 100 // 10 + s % 10

print(sum)

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

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