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.



Sample input:
101


Sample output:
2

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

j = []
for ss in s:
     j.append(int(ss))
print(sum(j))

Submission status: Accepted

Solution code:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
   
a,b,c=input()

a=int(a)
b=int(b)
c=int(c)

print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = str(input())
S = list(S)
ans = 0
for i in range(3):
    if S[i] == '1':
        ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = input()
print(int(N[0])+int(N[1])+int(N[2]))

Submission status: Accepted

Solution code:
s = input()
c = 0

for si in s:
  if si == '1': c+=1
    
print(c)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()

x=0
for i in range(3) :
  if int(a[-i])==1:
    x+=1
print(x)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(str(input()))
a = [int(i) for i in s]
print(a.count(1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
stdin = sys.stdin
mod = 10**9 + 7


ns = lambda: stdin.readline().rstrip()
ni = lambda: int(ns())
na = lambda: list(map(int, stdin.readline().split()))
sa = lambda h: [list(map(int, stdin.readline().split())) for i in range(h)]

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

Submission status: Accepted

Solution code:
s = input()
n = 0
s_list = list(s)
for item in s_list:
  if item == "1":
  	n += 1

print(n)

Submission status: Accepted

Solution code:
a = list(input())
s1,s2,s3 = a[0],a[1],a[2]

count = 0
for i in range(len(a)):
    count += int(a[i])

print(count)

Submission status: Accepted

Solution code:
s = input()
cnt = 0
for a in s:
	if a == "1":
		cnt += 1
print(cnt)
# print(input().count("1"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#!/usr/bin/python
# coding: UTF-8

from math import *
import os
import sys

#import scipy.optimize
import numpy as np


##################################################################
if __name__ == "__main__":
    Input = [raw_input() for i in range(1)]
    #[a,b] = list(map(int,Input[0].split()))
    sss = str(Input[0])
    S = [int(sss[i]) for i in range(3)]
    ans = sum(S)
    print ans

Submission status: Accepted

Solution code:
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'))

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-S
s = list(str(input()))

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

Submission status: Accepted

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


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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#全体

import collections
#1行に決まった数の文字
a, b, c = input()
list_abc = [a, b, c]
c = collections.Counter(list_abc)
print(c['1'])

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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!')

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
from fractions import gcd
# import queue
# from collections import Counter
# from itertools import accumulate
# from functools import reduce

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

#print(list_math)

cnt = 0

#for i in (len(list_mass)):
for i in list_mass:
    #if(list_math[i] == '1'):
    if(i == '1'):
        cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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


if __name__ == "__main__":
    resolve()

Submission status: Accepted

Solution code:
s = input()

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

print(s0+s1+s2)

Submission status: Accepted

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

Submission status: Accepted

Solution code:


def main():

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


if __name__== "__main__":
    main()

Submission status: Accepted

Solution code:
s = str(input())

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

print(counter)

Submission status: Accepted

Solution code:
a = input()

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

print(b)

Submission status: Accepted

Solution code:
s = input()

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import subprocess
import gzip, base64, os
import stat

gz = b'H4sIAK6DaF0C/+1ce3wTx51fSX6IlyXe5hEwiUlNCLaFDZikFMm2YBVkcLF5JC0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ZBL96W8xgRFQ7dQYhorE55dOl+rfAfDrvfKULDdcZpYbrj1LD9Uep4TNFqeE6otRwXVFaeZ1RWnn9UVo52Mp7o2JMjDc3l3o5QbijZrngdjU0CgLXf/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)


# compiled by pythran
'''
#pythran export main2()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(c) for c in input()]
print(a[0] + a[1] + a[2])

Submission status: Accepted

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

Submission status: Accepted

Solution code:

def main():
	inp = input().strip()
	counter = inp.count('1')
	print(counter)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
list = input()
ans = int(list[0]) + int(list[1]) + int(list[2])
print(ans)

Submission status: Accepted

Solution code:

a = list(input())
count = 0

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

print(count)

Submission status: Accepted

Solution code:
con = 0

str_list = list(input())
for i in range(0,3):
    if str_list[int(i)] == "1":
        con += 1
print(con)

Submission status: Accepted

Solution code:
l = input()
a = 0
if int(l[0]) == 1:
    a = a + 1
else:
    pass
if int(l[1]) == 1:
    a = a + 1
else:
    pass
if int(l[2]) == 1:
    a = a + 1
else:
    pass
print(a)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-

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

Submission status: Accepted

Solution code:
a=map(int,list(input()))
b=0
for i in a:
  if i==1:
    b+=1
  else:
    pass
print(b)

Submission status: Accepted

Solution code:
import re
print(len(re.findall('1',input())))

Submission status: Accepted

Solution code:
# coding:utf-8

string = str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()

count = 0

if a[0:1] == "1":
  count += 1

if a[1:2] == "1":
  count += 1

if a[2:3] == "1":
  count += 1

print(count)

Submission status: Accepted

Solution code:
l = input()
count = 0
for n in range(len(l)):
    if l[n] == "1":
        count+=1
print(count)

Submission status: Accepted

Solution code:
inputs = input()
input_arr = [int(inputs[i]) for i in range(len(inputs))]
print(sum(input_arr))

Submission status: Accepted

Solution code:
S = list(input())

print(S.count('1'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a= input()
count=0

if a[0]=="1":
  count+=1
if a[1]=="1":
  count+=1
if a[2]=="1":
  count+=1
  
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_value = input()
a, b, c = input_value
d = [a, b, c]
print(d.count('1'))

Submission status: Accepted

Solution code:
def ten_decision(n,count):
  tmp = count
  if n >= 10 and n<100:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  if tmp == count:
    return 0
  return count

n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif ten_decision(n,count):
  print(ten_decision(n,count))
elif n >= 100:
  count = count + 1
  n = n%100
  if ten_decision(n,count):
    print(ten_decision(n,count))
  else :
    if n ==1:
      count = count + 1
    print(count)

Submission status: Accepted

Solution code:
nums = list(input())
a = 0
for num in nums:
    if num=="1":
        a +=1
print(a)

Submission status: Accepted

Solution code:
n=int(input())
count = 0
if n == 0:
  print(0)
elif n == 1:
  print(1)
elif n >= 10 and n <100:
  count = count + 1
  n = n%10
  if n == 1:
    count = count + 1
  print(count)
elif n >= 100:
  count = count + 1
  n = n%100
  if n >= 10:
    count = count + 1
    n = n%10
    if n == 1:
      count = count + 1
  else :
    if n ==1:
      count = count + 1
  print(count)

Submission status: Accepted

Solution code:
A=int(input())

print(A%3 if A!=111 else 3)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
i = {}
i[0] = int(input())
i[1] = int(i[0] / 10)
i[2] = int(i[1] / 10)
i[1] = i[1] - i[2] * 10
i[0] = i[0] - i[1] * 10 - i[2] * 100
s = i[0] + i[1] + i[2]
print(s)

Submission status: Accepted

Solution code:
from collections import defaultdict, Counter
from heapq import heapify, heappop, heappush
from sys import stdin
 
def main():
    S = input()
    ans = 0
    for s in S:
        if s == "1":
            ans += 1
    print(ans)
 
input = lambda: stdin.readline().rstrip()
main()

Submission status: Accepted

Solution code:
a = input()

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=0
for x in input():
    a+=int(x)
print(a)

Submission status: Accepted

Solution code:
s = list(input())
i = 0

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


print(i)

Submission status: Accepted

Solution code:
a = str(input())

print(a.count("1"))

Submission status: Accepted

Solution code:
a = str(input())


print(a.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
ones = 0
for i in s:
  if i == "1":
    ones += 1

print(ones)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = input()
    count = 0
    for i in range(len(s)):
        if s[i] == "1":
            count += 1
    return count

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

Submission status: Accepted

Solution code:
s = list(input())
num = 0
for i in s:
	if int(i) == 1:
		num += 1
print(num)

Submission status: Accepted

Solution code:
s = str(input())
count = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print([ _ for _ in input() ].count('1'))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
print(len(list(filter(lambda i: i == 1, [int(s) for s in input()]))))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = int(input())
cnt = 0
  
while a != 0:
  if a%10 == 1:
  	cnt += 1
  a = int(a/10)
  
print(cnt)

Submission status: Accepted

Solution code:
count = 0
for s in input():
  if int(s) == 1:
    count+=1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input = input()
list = [int(s) for s in input]
count = 0
for s in list:
  if s == 1:
    count += 1

print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
j = 0

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

print(j)

Submission status: Accepted

Solution code:
sum = input()
cnt = 0
  
if sum[0] == '1' :
  cnt += 1
 
if sum[1] == '1':
  cnt += 1
 
if sum[2] == '1':
  cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
src = input()

sum = 0
if src[0] == '1':
    sum += 1
if src[1] == '1':
    sum += 1
if src[2] == '1':
    sum += 1

print(sum)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_a = str(input())
count = 0
for i in input_a:
    if i == "1":
        count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
count = 0
for i in str(input()):
  if i == "1":
    count+=1    
print(count)