Problem:
 Score : 100 points    Problem Statement Snuke prepared 6 problems for a upcoming programming contest.
For each of those problems, Rng judged whether it can be used in the contest or not.  You are given a string S of length 6 .
If the i -th character of s is 1 , it means that the i -th problem prepared by Snuke is accepted to be used; 0 means that the problem is not accepted.  How many problems prepared by Snuke are accepted to be used in the contest?      Constraints  The length of S is 6 .  S consists of 0 and 1 .         Inputs Input is given from Standard Input in the following format:  S       Outputs Print the number of problems prepared by Snuke that are accepted to be used in the contest.        Sample Input 1 111100      Sample Output 1 4  The first, second, third and fourth problems are accepted, for a total of four.       Sample Input 2 001001      Sample Output 2 2       Sample Input 3 000000      Sample Output 3 0

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

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

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

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

for i in S:
  ans += int(i)
print (ans)

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

Solution (Python):

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

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

Solution (Python):

S = input()
n = 0
for i in range(6):
    if S[i] == "1":
        n += 1
print(n)

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

Solution (Python):
import sys


def solve():
    readline = sys.stdin.buffer.readline
    mod = 10 ** 9 + 7
    s = str(readline().rstrip().decode('utf-8'))
    print(s.count("1"))


if __name__ == '__main__':
    solve()

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

print(cnt)

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

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

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

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

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

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

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

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

Solution (Python):

import sys
sys.setrecursionlimit(10000000)
INF = 1<<32


def solve(S: str):
    print(S.count('1'))
    return



def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    S = str(next(tokens))  
    solve(S)

if __name__ == '__main__':
    main()

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

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

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

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

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

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

ans = 0
for i in range(len(s)):
  ans += int(s[i])
print(ans)

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

ans = 0
for i in range(len(s)):
  ans += int(s[i])
print(ans)

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

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

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

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

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

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

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    s = str(input().rstrip('\n'))
    print(s.count("1"))


if __name__ == '__main__':
    slove()

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

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

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

Solution (Python):
n = raw_input()
count = 0
for i in n:
    if(i=='1'):count+=1;

print(count)

Solution (Python):
n = raw_input()
count = 0
for i in n:
    if(i=='1'):count+=1;

print(count)

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

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

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

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

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

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

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

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

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

Solution (Python):
def slove():
    import sys
    input = sys.stdin.readline
    print(str(input().rstrip('\n')).count("1"))


if __name__ == '__main__':
    slove()

Solution (Python):
def main():

    s = input()
    ans = 0
    for c in s:
        if c == "1": ans += 1
    return ans

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

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

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

print(a.count('1'))

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

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

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

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

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

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

Solution (Python):



S = input()



score = 0

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

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

print(solve(input()))

Solution (Python):
print(input().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):
print(input().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(S.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()
sli = list(S)
c = 0
for i in range(len(S)):
    if sli[i] == "1":
        c += 1 
print(c)

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

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

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

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

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

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


if __name__ == "__main__":
    main()

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

Solution (Python):
S = input()

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

Solution (Python):
b,*a='_'+input();print(sum(map(int,a)))

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

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

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

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

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

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

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

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

Solution (Python):
print(sum(1 for i in input() if i=="1"))

Solution (Python):
import bisect
import os
from collections import Counter, deque
from fractions import gcd
from functools import lru_cache
from functools import reduce
import functools
import heapq
import itertools
import math
import numpy as np
import re
import sys

if os.getenv("LOCAL"):
    sys.stdin = open("_in.txt", "r")

sys.setrecursionlimit(2147483647)
INF = float("inf")

S = sys.stdin.readline().rstrip()
print(S.count('1'))

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

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

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

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

import sys
input = sys.stdin.readline
def mi(): return map(int, input().split())


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

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

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

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

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

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):
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))]
count = 0
for i in l:
    if i == 1:
        count = count + 1
print(count)

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

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

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

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

Solution (Python):
S = input()

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

Solution (Python):


S = str(input())

total = 0
for i in S:
    if i == "1":
        total += 1

print(total)

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

Solution (Python):
s = input()

cnt = 0

for i in range(6):
  if s[i]=="1":
    cnt += 1

print(cnt)

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

Solution (Python):
S=input()

print(S.count('1'))

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

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

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

print(s.count("1"))

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

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

Solution (Python):
from statistics import mean, median,variance,stdev
import numpy as np
import sys
import math
import fractions
import itertools
import copy
import collections
from operator import itemgetter

def j(q):
    if q==1: print("Yes")
    else:print("No")
    exit(0)


def ct(x,y):
    if (x>y):print("+")
    elif (x<y): print("-")
    else: print("?")

def ip():
    return int(input())
def printrow(a):
    for i in range(len(a)):
        print(a[i])



b = input()                                  






a = []
for i in range(len(b)):
    a.append(b[i])
p  = 0
for i in range(len(a)):
    if a[i] == '1':
        p+=1
print(p)

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

Solution (Python):


import sys

def input(): return sys.stdin.readline().strip()
def list2d(a, b, c): return [[c] * b for i in range(a)]
def list3d(a, b, c, d): return [[[d] * c for j in range(b)] for i in range(a)]
def ceil(x, y=1): return int(-(-x // y))
def INT(): return int(input())
def MAP(): return map(int, input().split())
def LIST(): return list(map(int, input().split()))
def Yes(): print('Yes')
def No(): print('No')
def YES(): print('YES')
def NO(): print('NO')
sys.setrecursionlimit(10 ** 9)
INF = float('inf')
MOD = 10 ** 9 + 7

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

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

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

Solution (Python):
Ss = input()

print(Ss.count('1'))

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

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

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

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

Solution (Python):
S = input()

ans = S.count("1")

print(ans)

Solution (Python):
S = input()

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

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):
S=input()
ans=0
for i in range(6):
    if S[i]=="1":
        ans+=1
print(ans)

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

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

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

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

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

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

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

Solution (Python):
S = input()
print(sum([len(c) for c in S.split("0")]))

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

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

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

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

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

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

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

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

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

Solution (Python):
str = input()
str_li = list(str)
count = 0
for str_one in str_li:
    if int( str_one ) == 1:
        count = count+1

print(count)

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

lst = []
while S > 0:
    lst.append(S%10)
    S //= 10 
lst.reverse()

print(sum(lst))

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

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

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

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

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

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

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

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

Solution (Python):
s = list(input().strip('\n'))
s = sum([int(x) for x in s])
print(s)

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

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

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

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

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

Solution (Python):
n=int(input())
c=0
for i in range(6):
    c+=n%10
    n=n//10
print(c)

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

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

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

Solution (Python):
i = raw_input()
S = 6
count = 0
for _ in range(S):
    if str(i[_]) == '1':
        count += 1
print(count)

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

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

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

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

Solution (Python):
S = input()

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

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

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

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

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

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

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

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

Solution (Python):
S = list(input())
L = []
for k in range(len(S)):
  L.append(int(S[k]))
print(sum(L))

Solution (Python):
S = input()
cnt = 0
for i in range(6):
    if S[i] == "1":
        cnt += 1
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,ans = input(),0
for i in range(6):
    if s[i] == "1":
        ans += 1
print(ans)

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

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

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

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

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

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

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

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

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

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

Solution (Python):





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

    print(s.count('1'))

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

Solution (Python):
s, ans = raw_input(), 0
for c in s:
    if c is '1':
        ans += 1
print ans

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

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

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

Solution (Python):
s=input()
if '1' in s:
  print(s.count('1'))
else:
  print(0)

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

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

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

Solution (Python):






















import sys


def main():
    input_snuke = input()
    ret = snuke(input_snuke)
    print(ret)
    print("Hello, world.", file=sys.stderr)

    return ret


def snuke(list_snuke):

    count_snuke = 0
    
    for ch in list_snuke:
        if ch == '1':  
            count_snuke += 1

    return count_snuke


if __name__ == '__main__':
    main()

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

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

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

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

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

Solution (Python):
import math
import sys

def getinputdata():

    
    array_result = []
    
    data = input()

    
    array_result.append(data.split(" "))

    flg = 1

    try:


        while flg:

            data = input()

            array_temp = []

            if(data != ""):
                
                array_result.append(data.split(" "))

                flg = 1

            else:

                flg = 0
    finally:


        return array_result





arr_data = getinputdata()

s = arr_data[0][0]

mysum=0

for v in s:
    
    mysum+=int(v)
    
print(mysum)

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

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

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

Solution (Python):
from collections import Counter
s = list(str(input()))
print(s.count("1"))

Solution (Python):
def main():
    S = input()

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


if __name__ == '__main__':
    main()

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

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

Solution (Python):





def main():
    S = input()

    ans = sum(c == "1" for c in S)
    print(ans)

if __name__ == "__main__": main()

Solution (Python):

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

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

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

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

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

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

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

print (cnt)

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

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

Solution (Python):
import math,string,itertools,fractions,heapq,collections,re,array,bisect,sys,random,time,copy,functools

sys.setrecursionlimit(10**7)
inf = 10**20
eps = 1.0 / 10**15
mod = 10**9+7

def LI(): return [int(x) for x in sys.stdin.readline().split()]
def LI_(): return [int(x)-1 for x in sys.stdin.readline().split()]
def LF(): return [float(x) for x in sys.stdin.readline().split()]
def LS(): return sys.stdin.readline().split()
def I(): return int(sys.stdin.readline())
def F(): return float(sys.stdin.readline())
def S(): return input()


def main():
    s = S()
    r = 0
    for c in s:
        if c == '1':
            r += 1
    return r


print(main())

Solution (Python):

S = list(map(int, list(input())))
print(S.count(1))

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

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

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

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


if __name__ == "__main__":
    main()

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


if __name__ == "__main__":
    main()

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

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

print(count)

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

for i in range(len(S)):
    if int(S[i])==1:
        c+=1

print(c)

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

Solution (Python):
S=raw_input()
print bin(int(S,2)).count('1')

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

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

Solution (Python):
s = input()

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

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

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

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

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

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

Solution (Python):
from collections import defaultdict, Counter
from itertools import product, groupby, count, permutations, combinations
from math import pi, sqrt
from collections import deque
from bisect import bisect, bisect_left, bisect_right
INF = float("inf")


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


if __name__ == '__main__':
    main()

Solution (Python):
a =input() 
c=0
for i in range(0,6):
    if a[i] == "1":
        c += 1
    else:
        pass
print(c)

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

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

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

Solution (Python):
s = input()

print(len(s.replace('0','')))

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

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

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

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

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

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

Solution (Python):
sum = 0
for x in raw_input():
    sum += int(x)
print sum

Solution (Python):
import sys
import socket
from collections import Counter

hostname = socket.gethostname()

if hostname == 'F451C':
    sys.stdin = open('a1.in')


def read_int_list():
    return list(map(int, input().split()))


def read_str_list():
    return input().split()


def read_int():
    return int(input())


def read_str():
    return input()


def main():
    s = read_str()
    c = Counter(s)
    res = c['1']
    print(res)


main()

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

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

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

Solution (Python):
def main():
    S = input()
    sum_= 0
    for i in range(len(S)):
        sum_ += int(S[i])
    print(sum_)

    
    
if __name__=="__main__":
    main()

Solution (Python):



if __name__ == "__main__":
    S = raw_input()
    num = 0
    for i in range(6):
        if int(S[i]) == 1:
            num += 1
    print num

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

Solution (Python):
N = raw_input()
print N.count("1")

Solution (Python):
import re
S = raw_input()
print len(re.findall("1",S))

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

print(ans)

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

print(num)

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

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

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

Solution (Python):
n=raw_input()
ans=0
for i in range(6):
	if n[i]=='1':
		ans=ans+1
print ans

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

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

Solution (Python):
S = input()

count = 0

accept = list(map(int,str(S)))

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

print(count)

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

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

Solution (Python):
s=input()

print(s.count('1'))

Solution (Python):
S = [int(n) for n in list(input())]
print(sum(S))

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

Solution (Python):


str_input = input()
count = 0

for x in str_input:
    if x == '1':
        count += 1
print(count)

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

Solution (Python):

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

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

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

Solution (Python):
import sys
import numpy as np

print(np.count_nonzero(list(map(int, list(sys.stdin.readline().strip())))))

Solution (Python):
S = int(input())
ans = 0
for i in range(6):
    A = S%10
    B = int(S/10)
    S = B
    ans += A
print(int(ans))

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

Solution (Python):
s = str(input())
sl = list(s)
accepted = 0
for i in range(6):
    if sl[i] == "1":
        accepted += 1
print(accepted)

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

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

Solution (Python):
ans = 0

a = list(input())
for i in range(6):
    ans = ans + int(a[i])

print(ans)

Solution (Python):
a = input()
s = list(a)
n = len(a)
count = 0

for i in range(n) :
  count += int(s[i])

print (count)

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

Solution (Python):



s = input()
c = 0
for a in s:
    if a == '1':
        c += 1

print(c)

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

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

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

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

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

Solution (Python):

string = input()
print(len(list(filter(lambda x: x == '1', list(string)))))

Solution (Python):
s=raw_input()
c=0
for i in range(6):
	if s[i]==str(1):
		c+=1
print c

Solution (Python):
"""入力に長さ6の文字列，出力は文字列の中の1の数"""

def main():
    """実行部"""
    decision_string = input()
    counter = 0
    for each_sentence in decision_string:
        if each_sentence == "1":
            counter += 1
    print(counter)
    return None

if __name__ == "__main__":
    main()

Solution (Python):


c = input().count('1')

print(c)

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

Solution (Python):
s=input()

ans=s.count("1")

print(ans)

Solution (Python):
a=input()
e=[a[i] for i in range(len(a))]
b=sum(list(map(int,e)))
print(b)

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

Solution (Python):
str = input()

count = 0

for letter in str:
    count += int(letter)

print(count)

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

Solution (Python):


S = input()
num = 0
for i in range(6):
    num += int(S[i])

print(num)

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

print(cnt)

Solution (Python):
nyuryoku = input()

print(nyuryoku.count("1"))

Solution (Python):
inputs = input()

print(inputs.count('1'))

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

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

main()

Solution (Python):



S = input()

numList = list(S)

count = 0
for i in numList:
	if i == "1":
		count += 1

print(count)

Solution (Python):
inp=raw_input()
print int(inp[0])+int(inp[1])+int(inp[2])+int(inp[3])+int(inp[4])+int(inp[5])

Solution (Python):



n = raw_input()

count = 0
for i in range(6):
    if n[i] == "1":
        count += 1

print count

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

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

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