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

print(count)

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

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

Solution (Python):
print(4-len(input().split('0')))

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

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

Solution (Python):
s = input()

print(s.count('1'))

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

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

print(ans)

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

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

for i in range(3):
    if int(T[i])==1:
        a += 1

print(a)

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

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

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

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

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

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

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

print(count)

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

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

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

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

print(ans)

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

Solution (Python):
n = input()

print(n.count("1"))

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

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

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

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

Solution (Python):


str = input()

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

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

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

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

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

Solution (Python):


s = input()

print(s.count("1"))

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
s = input()

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

print(count)

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

Solution (Python):
import numpy as np

a = str(input())
s1 = int(a[0])
s2 = int(a[1])
s3 = int(a[2])

print(np.sum(s1 + s2 + s3))

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

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

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

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

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

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

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

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

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

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

print(s.count('1'))

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

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

Solution (Python):
num_str = input()

print(sum([1 for a in num_str if a == '1']))

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

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

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

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

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

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

Solution (Python):
s = input()

print(s.count("1"))

Solution (Python):


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

print(sum(s))

Solution (Python):
def solve(string):
    return str(string.count("1"))


if __name__ == '__main__':
    print(solve(input()))

Solution (Python):

a = list(str(input()))
num = [int(s) for s in a]
print(sum(num))

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

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

Solution (Python):
import re

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

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

Solution (Python):

arr = list(raw_input())
s = 0
if(arr[0] == "1"):
  s += 1
if(arr[1] == "1"):
  s += 1
if(arr[2] == "1"):
  s += 1
print s

Solution (Python):
print(sum(1 for c in input() if c == '1'))

Solution (Python):
def count_1(a):
  c=0
  for i in a:
    if i=="1":
      c+=1
  else:
    return c
a=input()
print(count_1(a))

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

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

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

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

for i in range(3):
    count = count + (number % 10)
    number = int(number / 10)

print(count)

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

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

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

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

print(count)

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

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

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

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

print(int(a)+int(b)+int(c))

Solution (Python):


s = list(input())
result = 0
for i in s:
    if i == '1':
        result += 1

print(result)

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

print(sum)

Solution (Python):
s1_3 = input()
s1, s2, s3 = s1_3[0], s1_3[1], s1_3[2]

y = 0
for x in (s1, s2, s3):
    
    if int(x) == 1:
        y += 1

print(y)

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

print(a)

Solution (Python):

A=input()
B=A.replace('0','')
c=len(B)
print(c)

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

Solution (Python):

from collections import defaultdict
from collections import deque
from heapq import heappush, heappop
import sys
import math
import bisect
import random
def LI(): return list(map(int, sys.stdin.readline().split()))
def I(): return int(sys.stdin.readline())
def LS():return list(map(list, sys.stdin.readline().split()))
def S(): return list(sys.stdin.readline())[:-1]
def IR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = I()
    return l
def LIR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = LI()
    return l
def SR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = S()
    return l
def LSR(n):
    l = [None for i in range(n)]
    for i in range(n):l[i] = SR()
    return l
sys.setrecursionlimit(1000000)
mod = 1000000007



def A():
    a,b = LI()
    if not (a*b)%2:
        print("Even")
    else:
        print("Odd")
    return


def B():
    s = S()
    print(s.count("1"))
    return


def C():
    return


def D():
    return


def E():
    return


def F():
    return


def G():
    return


def H():
    return


if __name__ == "__main__":
    B()

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

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

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

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

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

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

Solution (Python):

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

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

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

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

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

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

Solution (Python):
N = 1
data = []
for i in range(N):
    data_input = list(map(int,input().split()))
    data.append(data_input)
data = data[0][0]
ans=0
for i in range(3):
    k=2-i
    ans += data // (10**k)
    data = data % (10**k)
    
print(ans)

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

Solution (Python):
n = int(input())
c = 0
if((n-1)%2==0):
    c+=1
if((n-110)>=0 or ((n-10)>=0 and 100 > n)):
    c+=1
if((n-100)>=0):
    c+=1
print(c)

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

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

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

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

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

if s[0] == "1":
	cnt =cnt + 1

if s[1] == "1":
	cnt +=1
if s[2] == "1":
	cnt +=1

print(cnt)

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

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

for i in abc:
    if int(i) == 1:
        count += 1

print(count)

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
A=list(input())
print(eval("+".join(A)))

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

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

Solution (Python):

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

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

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

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

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

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

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

Solution (Python):
print(sum(1 if e == '1' else 0 for e in input()))

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

Solution (Python):
s = input()
s_list = list(s)
j = 0
c1 = 0
for i in s_list:
    if int(s_list[j]) == 1:
        c1 += 1
    j += 1
print(c1)

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

Solution (Python):


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

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

Solution (Python):
sss = input()
masu = list(sss)
counter = 0
if(masu[0] == '1'):
    counter += 1
if (masu[1] == '1'):
    counter += 1
if (masu[2] == '1'):
    counter += 1
print(counter)

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

if N[0] == '1':
    ans += 1
if N[1] == '1':
    ans += 1
if N[2] == '1':
    ans += 1
print(ans)

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

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

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

Solution (Python):
def placing_marbles(s: str) -> int:
    return sum(c == '1' for c in s)


if __name__ == "__main__":
    s = input()
    ans = placing_marbles(s)
    print(ans)

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

Solution (Python):

s = int(input())
ans = 0
while s > 0:
    ans += s%10
    s //= 10
print(ans)

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

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
import sys

def main():
    input = sys.stdin.readline
    S = [int(s) for s in input().strip()]
    print(sum(S))


if __name__ == '__main__':
    main()

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

Solution (Python):

s = input()

cnt = 0

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

print(cnt)

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

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

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

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

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

Solution (Python):
print([i for i in input()].count("1"))

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


if __name__ == "__main__":
    main()

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

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

if b == 1:
    count += 1

if c == 1:
    count += 1

if d == 1:
    count += 1

print(count)

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

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

Solution (Python):
a = str(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):
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):


binDigit = [int(num) for num in list(input())]


sumNum = sum(binDigit)

print(sumNum)

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

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

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


if __name__ == "__main__":
    main()

Solution (Python):
s = input()

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

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

Solution (Python):
from sys import stdin

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

Solution (Python):

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

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

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

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

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

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

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

Solution (Python):
masu = input()
print(str(len(str(masu).replace("0",""))))

Solution (Python):
masu = input()
mas1 = str(masu).replace("0","")
print(str(len(mas1)))

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

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

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

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

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

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

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

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

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

Solution (Python):

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

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

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

Solution (Python):
from sys import stdin

a = stdin.readline().rstrip()
print(a.count('1'))

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

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

Solution (Python):
l=list(map(int,str(input())))
print(l.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 = raw_input()
ans =0
for c in s:
    if c =="1":
        ans+=1
print ans

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

Solution (Python):
data = int(input())
count = 0;
if data>=100:
    count += 1
if data%10==1:
    count += 1
if data%100>=10:
    count += 1
print(count)

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

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

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

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

Solution (Python):
from sys import stdin
l = list(stdin.readline().rstrip())
print(l.count('1'))

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

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

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

Solution (Python):
from collections import Counter

s = input()
cnt = Counter(s)
print(cnt['1'])

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

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

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

Solution (Python):
s = input()

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

print( ans )

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

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

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

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

Solution (Python):
a = int(input())
b = 0
for i in range(3):
    if a % 2 == 0:
        a = a / 10
    else:
        b = b + 1
        a = (a-1)/10
print(b)

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

L = list(num)

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

Solution (Python):
math=input()
a_list=list(math+'0')
a_list.remove('0')
ball=a_list.count('1')
print(ball)

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

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

print(b+c+d)

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


print(s.count('1'))

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

Solution (Python):
s = input()

print(s.count("1"))

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

Solution (Python):

"""
Created on Sun Feb 24 22:36:54 2019

@author: yuta
"""

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

x = input()
match(x)    
"""    
    count = 0
    for i in "Hello":
        if i == 'l':
            count = count + 1
    print(count)
"""

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

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

Solution (Python):
ss = input()

ans = ss.count('1')

print(ans)
print()

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

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

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

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

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

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

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

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

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

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

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

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

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

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

print(count)

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

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

Solution (Python):
char_list = list(input())
num_list = list(map(int, char_list))
out = sum(num_list)
print(out)

Solution (Python):
import math
import numpy as np
import sys
input = sys.stdin.readline
def IL(): return list(map(int,input().split()))
def SL(): return input().split()
def I(): return int(sys.stdin.readline())
def S(): return input()

s = S()

print(s.count("1"))

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

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

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

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

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

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

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

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

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

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

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

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

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

Solution (Python):
import sys
A = map(int, list(sys.stdin.readline().rstrip()))
ans = 0
for i in xrange(len(A)): ans += A[i]
print ans

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

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

if a[0] ==str(1): 
    cnt+=1
if a[1] ==str(1):
    cnt+=1
if a[2] ==str(1):
    cnt+=1
print(cnt)

Solution (Python):
masume = input().split()[0]
masume = [int(x) for x in list(masume)]

one_n = len([x for x in masume if x == 1])
print(one_n)

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

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

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

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

Solution (Python):
shio = str(raw_input())
counter = 0
i=0
while i < 3:
  if shio[i] == "1":
    counter +=1
  i +=1
print(counter)

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

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

Solution (Python):
print(input().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):
print(int(input())%9)

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

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

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

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

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

Solution (Python):


s = str(input())

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

print(cnt)

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

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

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

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

Solution (Python):

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

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

Solution (Python):
in_str = input()

print(in_str.count('1'))

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

print(b)

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

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

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

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

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

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

Solution (Python):
def count(lst, x):
   ctr = 0
   for i in lst:
      if i == x:
         ctr += 1
   return ctr

s = [x for x in input()]
print(count(s, "1"))

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

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

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

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

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

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

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

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

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

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

Solution (Python):
N = input()
ans = 0
for x in N:
  if x == '1':
    ans += 1
  else:
    pass
print(ans)

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

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

Solution (Python):
s = input()
print(len(list(filter(lambda x:x=='1',s))))

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

Solution (Python):
s1s2s3 = input()

s = str(s1s2s3)
count = 0

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

print(count)

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

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

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

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

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):
s = input()
print(len([a for a in s if a == '1']))

Solution (Python):
""" AtCoder """

S = input()

print(S.count('1'))

Solution (Python):
a = int(input(), 2)

print(bin(a).count('1'))

Solution (Python):
n = int(input(), 2)
count  = 0
while n > 0:
    n = n & (n - 1)
    count += 1
print(count)

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

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

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

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

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

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

Solution (Python):


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

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

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

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

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

Solution (Python):
def main(argv):
    
    print(argv.count('1'))
    return


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

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

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

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

print(c)

Solution (Python):
raw_str = input()

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

print(counter)

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

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

Solution (Python):
i=input()

print (i.count("1"))

Solution (Python):
value = input()

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

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

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

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

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

Solution (Python):
import math
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):





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


print(sum(line))

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

print(a + b + c)

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