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:


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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
##### 解けた #####

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

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

print(cout)

Submission status: Accepted

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

print(s)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
print(len(s.replace("0","")))

Submission status: Accepted

Solution code:
num = input()
count = [1 for i in range(len(num)) if num[i] =="1"]
print(len(count))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=input()
count=0
if a=="1":
    count+=1
if b=="1":
    count+=1
if c=="1":
    count+=1
print(count)

Submission status: Accepted

Solution code:
s = input()
ans = s.count("1")

print(ans)

Submission status: Accepted

Solution code:
l = [x for x in input()]
ans = 0
if l[0] == '1':
  ans += 1
if l[1] == '1':
  ans += 1
if l[2] == '1':
  ans += 1

print(ans)

Submission status: Accepted

Solution code:
a,b,c = [int(x) for x in input()]
l = [a, b, c]
ans = 0
for i in l:
  if i == 1:
    ans += 1 
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()
print(s.count('1'))

Submission status: Accepted

Solution code:

a = input()

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

print(s.count("1"))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# 入力
N = str(input())
#X, Y = map(str, input().split())

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

Submission status: Accepted

Solution code:
from sys import stdin

s = stdin.readline().rstrip()
print(s.count("1"))

Submission status: Accepted

Solution code:
import sys

sys.setrecursionlimit(10 ** 6)
int1 = lambda x: int(x) - 1
p2D = lambda x: print(*x, sep="\n")

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#081a
S = str(input())
ans = 0
for string in S:
    if string == "1":
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
s = input()
count = 0

for i in range(0, 3):
    if s[i] == "1":
        count += 1

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(sum(1 for i in input() if i == '1'))

Submission status: Accepted

Solution code:
def examA():
    s = S()
    ans = s.count("1")
    print(ans)


import sys,copy,bisect,itertools
from heapq import heappop,heappush,heapify
from collections import Counter,defaultdict,deque
def I(): return int(sys.stdin.readline())
def LI(): return list(map(int,sys.stdin.readline().split()))
def LS(): return sys.stdin.readline().split()
def S(): return sys.stdin.readline().strip()
mod = 10**9 + 7
inf = float('inf')

examA()

Submission status: Accepted

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

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:
ls_s = [_ for _ in input()]

cnt = 0

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

print(cnt)

Submission status: Accepted

Solution code:
# coding:utf-8
line = input()

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

print(count)

Submission status: Accepted

Solution code:
line = input()
answer = 0
for i in range(0,3):
	if line[i] == "1":
		answer += 1
	else:
		continue
print(answer)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

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

Submission status: Accepted

Solution code:
n = [int(x) for x in list(input())]
s = 0
if n[0] == 1:
    s = s + 1
if n[1] == 1:
    s = s + 1
if n[2] == 1:
    s = s + 1
print(s)

Submission status: Accepted

Solution code:
string = str(input())
s1 = int(string[0])
s2 = int(string[1])
s3 = int(string[2])
print(s1+s2+s3)

Submission status: Accepted

Solution code:
strings = input()
cnt = 0
for s in strings:
  if s == "1":
    cnt += 1
print(cnt)

Submission status: Accepted

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

print(c)

Submission status: Accepted

Solution code:
# Me
def f():
    numstr = input()
    c = 0
    for i in numstr:
        if int(i) == 1:
            c += 1
    print(c)


f()

Submission status: Accepted

Solution code:
a = input()
count = 0

for i in range(3):
    if a[i] == "1":
        count += 1

print(count)

Submission status: Accepted

Solution code:
x = input()

counter = 0
for i in x:
    if i == '1':
        counter += 1

print(counter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

print(s1+s2+s3)

Submission status: Accepted

Solution code:
def main():
    s = list(input())
    ans = 0
    for i in s:
        ans += int(i)

    print(ans)


main()

Submission status: Accepted

Solution code:
a = input()
count = 0

for i in a:
    if(i == "1"):
        count+=1
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
"""
0 と 1 のみから成る 3 桁の番号 s が与えられます。1 が何個含まれるかを求めてください。
"""

s = input()

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

Submission status: Accepted

Solution code:
#abcをa b c
s = [0,0,0]
n = int(input())
s[0] = n // 100
s[1] = n // 10 - 10 * s[0]
s[2] = n % 10
m = 0
for a in range(3):
    if s[a] == 1:
        m += 1
print(m)

Submission status: Accepted

Solution code:
s = list(str(input()))
ans = 0

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ary = list(input())
cnt = 0

for i in range(len(ary)):
  if (ary[i] == '1'):
    cnt+=1

print(cnt)

Submission status: Accepted

Solution code:
s = input()

s1,s2,s3 = s[0:1],s[1:2],s[2:3]

i= 0 

if int(s1) == 1:
  i += 1
if int(s2) == 1:
  i += 1
if int(s3) == 1:
  i += 1
  
print(i)

Submission status: Accepted

Solution code:
n = input()

def digitSum(n):
    s = str(n)
    array = list(map(int, list(s)))
    return array

b = digitSum(n)
a = 0
c = len(b)
for i in range(c):
    if b[i] == 1:
        a+=1
    else:
        a+=0

print(a)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
# read = sys.stdin.read
# readline = sys.stdin.readline
# readlines = sys.stdin.readlines
# import collections
# import math
# import string
# import bisect
# import re
# import itertools
# import statistics

def main():
    s = sys.stdin.readline().rstrip()
    print(s.count('1'))



if __name__ == "__main__":
    # execute only if run as a script
    main()

Submission status: Accepted

Solution code:
#Placing Marbles
N = input()
S = 0
for i in range (0,3):
    if N[i:i+1] == "1":
        S = S+1
print(S)

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:
from sys import stdin

def main():
    a = stdin.readline().rstrip()
    counter = 0
    if a[0] == "1":
        counter += 1
    if a[1] == "1":
        counter += 1
    if a[2] == "1":
        counter += 1
    print(counter)

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
A = input()

ans = 0
for i in A:
    if i == "1":
        ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

c = 0
for st in s:
  if st == "1":
      c += 1

print(c)

Submission status: Accepted

Solution code:
s = input()
numbers = [int(number) for number in s]
print(numbers.count(1))

Submission status: Accepted

Solution code:
# coding=utf-8

if __name__ == '__main__':
    s = list(input())
    cnt = 0

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

    print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = input()
sum = int(s[0]) + int(s[1]) + int(s[2])
print(sum)

Submission status: Accepted

Solution code:
# A - Placing Marbles
s = input()
print(s.count('1'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = raw_input()

print(s.count("1"))

Submission status: Accepted

Solution code:
#読み込んだ文字列から１が何個含まれているか数える
count = input().count('1')
#出力
print(count)

Submission status: Accepted

Solution code:
count = input().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:
n = input()

print(n.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
aaa = list(input())
bag = []
if aaa[0] == "1":
    bag.append(1)
if aaa[1] == "1":
    bag.append(1)
if aaa[2] == "1":
    bag.append(1)
print(len(bag))

Submission status: Accepted

Solution code:
a = input()

print(a.count('1'))

Submission status: Accepted

Solution code:
i = input()
a = [int(i) for i in str(i)]

s = a[0]+a[1]+a[2]
print(s)

Submission status: Accepted

Solution code:
x = str(input())

cnt = 0

for st in x:
  if st == '1':
    cnt += 1
    
print(cnt)

Submission status: Accepted

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

print(count)

Submission status: Accepted

Solution code:
str = input()

print(str.count('1'))

Submission status: Accepted

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

print(s1+s2+s3)

Submission status: Accepted

Solution code:
s = str(input())

ans = 0
for i in s:
    if i == '1':
        ans += 1

print(ans)

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

Submission status: Accepted

Solution code:
"""
author : halo2halo
date : 24,Oct,2019
"""

import sys
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 7)

N = readline().rstrip()


print(N.count('1'))

Submission status: Accepted

Solution code:
s_list = [int(num) for num in input()]

count = 0
for num in s_list:
  if num == 1:
    count += 1
print(count)

Submission status: Accepted

Solution code:
a = str(input())
si_1 = [a[i]=='1' for i in range(3)]
print(si_1.count(True))

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:
x = int(input())
 
a = int(x / 100)
b = int((x / 10) % 10)
c = int(x % 10)
cnt = 0
 
if a == 1:
  cnt += 1
if b == 1:
  cnt += 1
if c == 1:
  cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
#input
input = int(input())
#b = int(input())
s = [0,0,0]
s[0] = int(input/100)
s[1] = int(input/10 - s[0]*10)
s[2] = int(input%10)

count=0
a=0
for i in range(3):
  #print(str(i) + '\n')
  if s[i] == 1:
    count += 1

print(count)

Submission status: Accepted

Solution code:

s = input()
count=0

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

if s[1] == "1":
    count += 1

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

print(count)

Submission status: Accepted

Solution code:
x = int(input())

a = int(x / 100)
b = int((x / 10) % 10)
c = int(x % 10)
cnt = 0

if a == 1:
  cnt += 1
if b == 1:
  cnt += 1
if c == 1:
  cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
try:
  s = str(input())
  c = 0

  if s[0]=='1':
    c += 1
  if s[1]=='1':
    c += 1
  if s[2]=='1':
    c += 1
  print(c)
except:EOFError

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=[]
a+=input()
print(a.count('1'))

Submission status: Accepted

Solution code:
S = list(input())

import collections
count = collections.Counter(S)

print(count["1"])

Submission status: Accepted

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

print(count)

Submission status: Accepted

Solution code:
input = input()
total = 0
for element in input:
    total += int(element)

print(total)

Submission status: Accepted

Solution code:
s = input()
print(sum(int(c) for c in s))

Submission status: Accepted

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

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()
counter=0

for n in range(3):
  if int(s[n])==1:
    counter+=1

print(counter)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(input())

cnt = 0
if(int(a[0]) == 1):
    cnt+=1
if(int(a[1]) == 1):
    cnt+=1
if(int(a[2]) == 1):
    cnt+=1
print (cnt)

Submission status: Accepted

Solution code:
a = str(input())

s1 = int(a[0])
s2 = int(a[1])
s3 = int(a[2])

print(s1+s2+s3)

Submission status: Accepted

Solution code:
s = list(input())

i = 0
count = 0

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input());
count = 0
for char in s:
  count += int(char)

print(count)

Submission status: Accepted

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


if __name__ == '__main__':
    slove()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = [int(c) for c in input()];print(sum(a))

Submission status: Accepted

Solution code:
cnt = 0
for a in input():
  if a == '1':
    cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
from collections import Counter
li = list(input())
total = 0
for s in li:
    if s == '1':
        total += 1
print(total)

Submission status: Accepted

Solution code:
s = [int(x) for x in input()]
print(sum(s))

Submission status: Accepted

Solution code:

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

Submission status: Accepted

Solution code:
print(len(input().replace('0', '')))

Submission status: Accepted

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

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:
s = input().strip()
print(s.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:
s = input()
print(sum([1 for i in range(3) if s[i]=="1"]))

Submission status: Accepted

Solution code:
n = input()
num_list = list(n)
count = 0

for i in num_list:
  if int(i) == 1:
    count += 1
  else:
    pass

print(count)

Submission status: Accepted

Solution code:
mable = input()
mable_list = mable.replace("0","")
print(len(mable_list))

Submission status: Accepted

Solution code:
s = input()

count = 0

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

print(count)

Submission status: Accepted

Solution code:
import re
a = input()
print(len(re.findall("1",a)))

Submission status: Accepted

Solution code:
a = list(input())
b = 0
for i in a:
    b += int(i)
print(b)

Submission status: Accepted

Solution code:
s = input()

print(len(list(filter(lambda c: c == '1', s))))

Submission status: Accepted

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

Submission status: Accepted

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

print(c)

Submission status: Accepted

Solution code:
a = list(input())
b = 0
for i in a:
    b += int(i)
print(b)

Submission status: Accepted

Solution code:
text=input()
count=0
for i in range(3):
  if text[i]=="1":
    count+=1
print(count)
#学び

Submission status: Accepted

Solution code:
print(int(input())%9)#くっちんぱに教えてもらいました

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
INT = lambda: int(input())
INTM = lambda: map(int,input().split())
STRM = lambda: map(str,input().split())
STR = lambda: str(input())
LIST = lambda: list(map(int,input().split()))
LISTS = lambda: list(map(str,input().split()))
def do():
    s=STR()
    a=0
    for i in s:
        a+=int(i)
    print(a)
if __name__ == '__main__':
    do()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
count = 0
if int(s / 100) == 1:
    count += 1
if int((s % 100) / 10) == 1:
    count += 1
if s % 10 == 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:
S=list(map(int,input()))
print(sum(S))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(input())

print(s.count("1"))

Submission status: Accepted

Solution code:
s=int(input())
x,ball =100,0
for i in range(3):
    if s/x >=1:
        ball +=1
        s -=x
    x =x/10

print(ball)

Submission status: Accepted

Solution code:
a = input()
total = 0
for b in a:
  if b ==  '1':
    total += 1

print(total)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=str(input())
if s=="111":
  print(3)
elif s=="000":
  print(0)
elif s=="001" or s=="010" or s=="100":
  print(1)
else:
  print(2)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())

a = list(a)


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

print(sum(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

input = sys.stdin.readline


def main():
    print(sum([int(i) for i in input().strip()]))


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a = input()
a=a.replace("0","" )
print(len(a))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s=input()

a=0

for n in range(3):
  if s[n]=='1':
    a+=1

print(a)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
a = input()
print(a.count('1'))

Submission status: Accepted

Solution code:
l = input()

print(l.count("1"))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#input：長さ３の０と１からなる文字列
#output：１の書かれている数

S = list(input())
print(S.count('1'))

Submission status: Accepted

Solution code:
import sys
input = sys.stdin.readline

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

Submission status: Accepted

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

Submission status: Accepted

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

t = [i for i, x in enumerate(s) if x == '1']
print(len(t))

Submission status: Accepted

Solution code:
s=list(input())

print(s.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def resolve():
    target = input()
    print(int(target[0]) + int(target[1]) + int(target[2]))
    
resolve()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data=str(input())

print(data.count("1"))

Submission status: Accepted

Solution code:
print(list(map(lambda x:int(x),list(input()))).count(1))

Submission status: Accepted

Solution code:
#2019/09/25
s = input()
print(s.count("1"))

Submission status: Accepted

Solution code:
# ABC081 A - Placing Marbles
S = input()
ans = 0
for s in S:
    if s == '1':
        ans += 1
print(ans)

Submission status: Accepted

Solution code:
def resolve():
    # -*- coding: utf-8 -*-
    print(input().count("1"))


resolve()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s= input()
a= sorted(s)

if int(a[0])==1:
    print(3)
elif int(a[1])==1:
    print(2)
elif int(a[2])==1:
    print(1)
else:
    print(0)

Submission status: Accepted

Solution code:
s = input()

print(s.count("1"))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
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:
print(len([i for i in list(input()) if i == "1"]))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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


r = calc(input())
print(r)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = int(input())
ss = str(s)

print(ss.count('1'))

Submission status: Accepted

Solution code:
n = input()
x = 0
for i in n:
    i_int = int(i)
    x += i_int
print(x)

Submission status: Accepted

Solution code:
s1, s2, s3 = list(input())
ret = 0
if s1 == '1':
  ret += 1
if s2 == '1':
  ret += 1
if s3 == '1':
  ret += 1

print(ret)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
cnt = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
str = input()
count = 0

if str[0] == '1' :
     count+=1
if str[1] == '1' :
     count+=1
if str[2] == '1' :
     count+=1

print(count)

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:
a, b, c = map(int, input())
print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c = input()
d = 0
if int(a) == 1:
    d += 1
if int(b) == 1:
    d += 1
if int(c) == 1:
    d += 1
print(d)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s_list = list(input())
result = 0
for s in s_list:
    result += int(s)
print(result)

Submission status: Accepted

Solution code:
# import collections

# print(collections.Counter(input())['1'])

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

Submission status: Accepted

Solution code:
import collections

print(collections.Counter(input())['1'])

Submission status: Accepted

Solution code:
s = input(str())

count = 0

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
print(len([c for c in s if c=="1"]))

Submission status: Accepted

Solution code:
print(sum(map(int, input().strip())))

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:
math = list(map(int,input()))

ataino_kazu = math.count(1)
print(ataino_kazu)