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

ans = 0
for i in range(6):
    if S[i]=='1':
        ans += 1
    else:
        continue

print(ans)

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

Solution (Python):
S = raw_input()
ac = 0
for i in S:
    if i == '1':
        ac += 1

print ac

Solution (Python):
def solution():
	return sum([int(x) for x in list(input())])


print(solution())

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

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

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

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

Solution (Python):
n = input()

ac  = 0
for i in n:
    if i == '1':
        ac += 1
        
print(ac)

Solution (Python):

s = list(input())

x = 0
for i in range(len(s)):
    k = int(s[i])
    if k == 1:
        x += 1

print(x)

Solution (Python):

N = str(input())
count=0

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

print(count)

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

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

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

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

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

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

Solution (Python):
def main():
    value = input()
    list_value = list(value)
    print(list_value.count("1"))


if __name__ == '__main__':
    main()

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

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

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

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

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

print(s.count('1'))

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

Solution (Python):


S = input()

ans = 0
for c in S:
    if c=='1':
        ans += 1

print(ans)

Solution (Python):

"""
http://tenka1-2017-beginner.contest.atcoder.jp/tasks/tenka1_2017_a

"""
import sys
from sys import stdin
input = stdin.readline


def main(args):
    S = input().strip('\n')
    print(S.count('1'))


if __name__ == '__main__':
    main(sys.argv[1:])

Solution (Python):
S=input()

print(S.count("1"))

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

Solution (Python):
s = input()

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

print(rst)

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

Solution (Python):
S = input()

print(S.count("1"))

Solution (Python):
S = input()

print(S.count("1"))

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

Solution (Python):
S = input()
from collections import Counter as c
print(c(S)['1'])

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

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

for a in S:
    if a == "1":
        ans+=1

print(ans)

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

Solution (Python):


S = raw_input()

print S.count("1")

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