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

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

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

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

Solution (Python):
S=input()

c=0
for s in S:
  c+=int(s)
print(c)

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

print(cnt)

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

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

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

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

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

Solution (Python):



from math import *
import os
import sys


import numpy as np



if __name__ == "__main__":
    Input = [raw_input() for i in range(1)]
    
    sss = str(Input[0])
    S = [int(sss[i]) for i in range(3)]
    ans = sum(S)
    print ans

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

Solution (Python):
from collections import Counter,defaultdict
import sys,bisect,math,itertools,string,queue
mod = 10**9+7
def inp(): return int(sys.stdin.readline())
def inpl(): return list(map(int, sys.stdin.readline().split()))
def inpl_str(): return list(sys.stdin.readline().split())

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):
import sys
import math
from fractions import gcd





def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())


 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""


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

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

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

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

Solution (Python):
from functools import reduce

marble_num = reduce(lambda a, b: a + 1 if b is 1 else a, map(int, list(input())))
print(marble_num)

Solution (Python):

s = list(str(input()))

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

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

Solution (Python):
def word_counter(s: str):
    return s.count('1')


if __name__ == '__main__':
    s = input()
    print(str(word_counter(s)))

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

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

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

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

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

Solution (Python):


import collections

a, b, c = input()
list_abc = [a, b, c]
c = collections.Counter(list_abc)
print(c['1'])

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

def main():
    s = input().strip()
    ans = 0
    for i in range(3):
        if s[i] == "1":
            ans += 1
    print(ans)

if __name__ == "__main__":
    main()

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

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

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

Solution (Python):
n = input()
c=0
for i in range(3):
    c=c+int(n[i])
print(c)

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

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

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

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

Solution (Python):
s = input()

print(s.count("1"))

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()
b = 0
if a[0] == '1':
    b = b+1
if a[1] == '1':
    b = b+1
if a[2] == '1':
    b = b+1
print(b)

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

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

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

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

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

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

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

Solution (Python):
s = input()
li = map(int, [s[0], s[1], s[2]])
count = 0
for i in li:
  if i == 1:
    count += 1
  
print(count)

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

Solution (Python):
ss = str(raw_input())
ss = [s for s in ss]
print ss.count("1")

Solution (Python):
import sys
import math
from fractions import gcd





def lcm(a, b):
    return a * b // gcd(a, b)

def combination_count(n, r):
    return math.factorial(n) // (math.factorial(n - r) * math.factorial(r))

def permutations_count(n, r):
    return math.factorial(n) // math.factorial(n - r)

big_prime = 1000000007

"""


 =  sys.stdin.readline().rstrip()
 =  list(sys.stdin.readline().rstrip())


 =  int(sys.stdin.readline())
 =  map(int, sys.stdin.readline().split())
 =  list(map(int, sys.stdin.readline().split()))
 =  [list(map(int,list(sys.stdin.readline().split()))) for i in range(N)]
"""

list_mass =  list(sys.stdin.readline().rstrip())



cnt = 0


for i in list_mass:
    
    if(i == '1'):
        cnt += 1

print(cnt)

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

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


if __name__ == "__main__":
    resolve()

Solution (Python):
s = input()

s0=int(s[0])
s1=int(s[1])
s2=int(s[2])

print(s0+s1+s2)

Solution (Python):
a=input()

print(a.count('1'))

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

Solution (Python):
s=int(input())
s3=s//100
s2=s//10-10*s3
s1=s%10

count=0
if s1==1:
  count+=1
if s2==1:
  count+=1
if s3==1:
  count+=1
  
print(count)

Solution (Python):


def main():

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


if __name__== "__main__":
    main()

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

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

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

counter = 0
for i in range(len(s)):
    if s[i] == "1":
        counter += 1
    else:
        next

print(counter)

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

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

Solution (Python):
a = input()

b=0
if a[0] == "1":
   b+=1
if a[1] == "1":
   b+=1
if a[2] == "1":
   b+=1

print(b)

Solution (Python):
s = input()

ans = int(s[0]) + int(s[1]) + int(s[2])

print(ans)

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

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

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

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

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):
import subprocess
import gzip, base64, os
import stat

gz = b'H4sIAK6DaF0C/+1ce3wTx51fSX6IlyXe5hEwiUlNCLaFDZikFMm2YBVkcLF5JC0ssiRjJbKkSitiEhJIbOeiCKd80lyby/XBpU3a5tO7kl5KCaVAysO5a3OlSZukTRMo5bHCEJxAwIQE3fxmZuXZ1a5jkt7dP6cEj37f/T3m95uZ38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gLXf/qnILYKXjjlM8ZpQILgCwvrg+EmT1DwieFoTPDE2zhvGDKU6PeVzp1fNVubSej/LUdAgY9u5MjvQb54a+tGJMJQQv9PQJRVEBYtd9Q5BefSWjjDFNecfqdeL1u0qMHZKDQ6qt1O4FCo8CkBfAggJ9TeudRR56rh4McjGVMfJWm3s0f90UMEvbE49obLSF3nyZIqrdpnk6qZtA9JVXCVzh/Uca/48MVs9cwRj1kXBzyHVVkHm42j0dE+JlKpG5/oSCF6CGPWUY2qy9knVKpbqf8wSLXoZziTVVVfOHZSrVXzzFZVpQY8Y3eZgHebCvGY35d9jqtSEznyUlWFAU7pVXdv3YN4tRo96zBPDSbtA3jVbYJqJQ/ZrKNrsxxE/6tjTI9iVav1xcJCC5oBgn52dNJp/O94tm/WOFMdj6uOS/YBtOqaN8ViTLNkjipWKxrcua12O3N0afZps5oDJOvo2WwlyvN3tbQoj3pWatA6IJqcyqoxgD7bMcWqwekPN6tzSeZEZmXd8KTw2c4rVtnE28Gz8sygjwvWyMMDHbKsYvfjnQ9aByhnN+bf4RxhdWVRJlZBipN70TV6yK76/OrsGVA+K1lj2iOHIWsESn0UtAYLe+yw8jI+BJhkiv8Gi16jdURlAAA='
bin = gzip.decompress(base64.b64decode(gz))
p = os.path.dirname(__file__)
pymain = os.path.join(p, "a.out")
with open(pymain, "wb") as f:
    f.write(bin)
os.chmod(pymain, stat.S_IRUSR | stat.S_IWUSR | stat.S_IXUSR)
if p == "":
    pymain = "./" + pymain
subprocess.call(pymain)



'''


def main2():
    stdin = open('/dev/stdin')
    print(stdin.readline().count('1'))
'''