Problem:
 Score : 100 points    Problem Statement Snuke has a grid consisting of three squares numbered 1 , 2 and 3 .
In each square, either 0 or 1 is written. The number written in Square i is s_i .  Snuke will place a marble on each square that says 1 .
Find the number of squares on which Snuke will place a marble.      Constraints  Each of s_1 , s_2 and s_3 is either 1 or 0 .         Input Input is given from Standard Input in the following format:  s_{1}s_{2}s_{3}       Output Print the answer.        Sample Input 1 101      Sample Output 1 2   A marble will be placed on Square 1 and 3 .        Sample Input 2 000      Sample Output 2 0   No marble will be placed on any square.

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

Solution (Python):
nums = list(input())
nums = list(map(int, nums))
c = 0
for i in nums:
    if i == 1:
        c += 1

print(c)

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

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

Solution (Python):
def main():
    n=input()
    from collections import Counter
    c=Counter(list(n))
    print(c['1'])

if __name__=='__main__':
    main()

Solution (Python):



"""abc081_a"""

import sys
import pprint
import re

import itertools
pp = pprint.PrettyPrinter(indent=2)

def main():
    """Main function."""
    s = input()

    print(s.count('1'))


if __name__ == '__main__':
    sys.exit(main())

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

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

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

Solution (Python):


import sys

def main(argv):
    line = sys.stdin.readline()
    while line:
        print sum(map(lambda x: int(x), line.strip()))

        line = sys.stdin.readline()

if __name__ == "__main__":
    main(sys.argv)

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

Solution (Python):
print len([i for i in list(raw_input()) if i == "1"])

Solution (Python):
n = input()
m = 0

for i in n:
    if int(i) == 1: m += 1

print(m)

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

Solution (Python):


import sys

for line in sys.stdin:
    print( sum( int(i) for i in line.strip() ) )

Solution (Python):


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

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

print(res)

Solution (Python):




def test(mas):
    count = 0
    for i in range(3):
        if mas[i] == "1":
            count += 1
    return count

if __name__ == "__main__":
    mas = input()
    print(test(mas))

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

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

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

Solution (Python):
N = input()

X = 0

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

Solution (Python):


all_s = list(raw_input())

count = 0

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

print count

Solution (Python):
S = input()

cnt = 0

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

print(cnt)

Solution (Python):
if __name__=="__main__":
    n = list(map(int,input()))
    print(n.count(1))

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

Solution (Python):
if __name__=="__main__":
    n = list(map(int,input()))
    print(n.count(1))

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

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

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

print(ans)

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

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

main()

Solution (Python):
ss = input()

print(ss.count("1"))

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

Solution (Python):
import sys

line = sys.stdin.readline().strip()
r = line.count("1")
print(r)

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

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

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

Solution (Python):
def main():
    S = list(map(int, input()))
    c = 0
    for s in S:
        if s == 1:
            c += 1
    print(c)


if __name__ == "__main__":
    main()

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

Solution (Python):
S=raw_input()

c=0
for s in S:
  if s=='1':
    c+=1
print c

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

Solution (Python):

s = list(map(int, list(input())))
ans = 0
for s_ in s:
    if s_ == 1:
        ans += 1

print(ans)

Solution (Python):
from collections import Counter
print(Counter(input())['1'])

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

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

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

print(count)

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

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

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

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

Solution (Python):
import math
import itertools
import heapq
from sys import stdin, stdout, setrecursionlimit
from bisect import bisect, bisect_left, bisect_right
from collections import defaultdict, deque








def LM(t, r): return list(map(t, r))
def R(): return stdin.readline()
def RS(): return R().split()
def I(): return int(R())
def F(): return float(R())
def LI(): return LM(int,RS())
def LF(): return LM(float,RS())
def ONE_SL(): return list(input())
def ONE_IL(): return LM(int, ONE_SL())
def ALL_I(): return map(int, stdin)
def ALL_IL(): return LM(int,stdin)


def ap(f): return f.append
def pll(li): print('\n'.join(LM(str,li)))
def pljoin(li, s): print(s.join(li))




def main():
	s = ONE_IL()
	print(sum(s))

if __name__ == '__main__':
	main()

Solution (Python):
s = input()

print(s.count("1"))

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

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

Solution (Python):
s = input()

print(s.count('1'))