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:
A = [int(a) for a in list(input())]
print(sum(A))

Submission status: Accepted

Solution code:
li=list(input())
t = 0
for i in li:
    if i == "1":
        t+=1
    else:
        pass
print(t)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s  = input()
cnt = 0

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s_1,s_2,s_3 = (int(x) for x in input())

print(s_1 + s_2 + s_3)

Submission status: Accepted

Solution code:
def test():
    a = list(input())
    print(a.count("1"))


if __name__ == "__main__":
    test()

Submission status: Accepted

Solution code:
a=input()
# print(a)
# print(type(a))
if a[0]=="1":
    b=1
else:
    b=0
# print(b)
if a[1]=="1":
    c=1
else:
    c=0

if a[2]=="1":
    d=1
else:
    d=0

print(b+c+d)

Submission status: Accepted

Solution code:
inputline = input()
cnt =0

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

Submission status: Accepted

Solution code:
from sys import stdin
a=stdin.readline().rstrip()
x=a.count("1")
print(x)

Submission status: Accepted

Solution code:
a = input()

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

print(count)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
# ABC 081 A - Product
# スペース区切りの整数の入力
str = input()
# 出力
print(str.count("1"))

Submission status: Accepted

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

Submission status: Accepted

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

a = input()
print(sum([int(i) for i in a if i == '1']))

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
#a, b = map(int, input().split())  # list() を使っても構いません
s = input()
s_list = list(s)

a = 0

for i in s_list:
  if i == '1':
    a += 1

print(a)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
bdama_lst = str(input())
bdama_spl = list(bdama_lst)
count = 0

for target_list in bdama_spl:
    if target_list == '1':
        count = count + 1

print(count)

Submission status: Accepted

Solution code:
def main():
    s=list(input())
    s.sort()
    cnt=0
    for i in range(3):
        if(s[i]=="1"):
            cnt+=1
    print(cnt)
    
main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:

S = input()

N = S.count('1')

print(N)

Submission status: Accepted

Solution code:
#A-Placing Marbles(ABC081)
S=input()
m=0
for i in S:
    if i=="1":
        m+=1
print(m)

Submission status: Accepted

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

for l in s:
    if l == "1":
        p += 1

print(p)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

a = stdin.readline().rstrip()
count = 0
for x in a:
  if x == '1':
    count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def main():
    s = input()
    ans = 0
    for ss in s:
        if ss == "1":
            ans += 1

    print(ans)


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=input()

print(sum([int(i) for i in str(a)]))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
x = []
for i in range(3):
  x.append(s[i])
print(x.count("1"))

Submission status: Accepted

Solution code:
s = list(input())

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
trout = input().rstrip().lstrip()
num_list = []
for i in range(len(trout)):
  num_list.append(int(trout[i]))

print(num_list.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(input().count('1'))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
import sys
input = input().rstrip()
input_list = list(input)
count = 0

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

print(count)

Submission status: Accepted

Solution code:
a = [i for i in input()]
print(a.count('1'))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
string = input()

count = 0
for s in string:
  if s == '1': count += 1\
    
print(count)

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()
s=input()
print(sum(map(int,s)))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
List = list(input())
num = 0
for i in List:
    if i =="1":
        num+=1

print(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
ss = list(str(input()))
sum = 0
for s in ss:
    sum += int(s)

print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

print(sum(int(b) for b in s))

Submission status: Accepted

Solution code:
ss = int(input())
count = 0
for i in range(len(str(ss))):
    if ss % 10 == 1:
        count +=1
    ss = round(ss/10)

print(count)

Submission status: Accepted

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

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()
cnt = 0
for i in s:
    if int(i) == 1:
        cnt+=1
print(cnt)

Submission status: Accepted

Solution code:
s=list(input())	
n=sum(x=="1" for x in s)
print(n)

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:
i = map(int, list(input()))
n = 0
for x in i:
    if x == 1:
        n+=1

print(n)

Submission status: Accepted

Solution code:
a = input()
b = sum(list(map(int,str(a))))
print(b)

Submission status: Accepted

Solution code:
str = input()

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

print(counter)

Submission status: Accepted

Solution code:
a = input()
sum_a = sum(list(map(int, str(a))))
print(sum_a)

Submission status: Accepted

Solution code:
n = input()

n0 = int(n[0])
n1 = int(n[1])
n2 = int(n[2])

s = n0 + n1 + n2
print(s)

Submission status: Accepted

Solution code:
a = input()
b = int(a[0:1])
c = int(a[1:2])
d = int(a[2:3])

ball = 0

if(b == 1):
  ball += 1

if(c == 1):
  ball += 1

if(d == 1):
  ball += 1
  
print(ball)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
squares = map(int, list(input().rstrip("\n")))
print(sum(squares))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
p = str(input())
a = 0
for i in p:
  if int(i) == 1:
    a = a + 1
print(a)

Submission status: Accepted

Solution code:
text = input()

num = 0
for s in text:
  if s == "1":
    num += 1

print(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
count = 0
for i in s:
  if i == "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:
x = (input().count('1'))
print(x)

Submission status: Accepted

Solution code:
num = list(input())


print(num.count("1"))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    S = map(str, input())
    count=0
    for s in S:
        if s =='1':
            count += 1
    print(count)

Submission status: Accepted

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

print(c)

Submission status: Accepted

Solution code:
N = input()
res = 0

res = N.count("1")
print(res)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

n = 0
s = input()

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

print(n)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
box_str = input()
box_list = [num for num in box_str]
one_count = box_list.count("1")
print(one_count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
program = input()
num1 = int(program[0])
num2 = int(program[1])
num3 = int(program[2])
print(num1 + num2 + num3)

Submission status: Accepted

Solution code:
# 分割されていない文字列をどうやって分けるか
a = list(input())#　これで一文字ずつになる
cnt = 0
for i in a:
        if i == "1":
                cnt +=1          
print(cnt)

Submission status: Accepted

Solution code:
a = int(input())
i=0
sum=0
while i<len(str(a)):
  if str(a)[i]=="1":
    sum=sum+1
  i=i+1
  
print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = str(input())
b = 0

for aa in a:
  b += int(aa)
  
print(b)

Submission status: Accepted

Solution code:
str = input()
counter = 0

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

print(counter)

Submission status: Accepted

Solution code:
x = input()
n = []

for i in x:
  n.append(i)
  
  nn =list( map(int,n))

j = 0
k = 0
for k in range(len(nn)):
  if nn[k]==1:
    j=j+1
print(j)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys

count = 0
for v in sys.stdin.read():
  if v == '1':
    count += 1
print(count)

Submission status: Accepted

Solution code:
stdin = input()

print(stdin.count("1"))

Submission status: Accepted

Solution code:
A = list(str(input()))
# A = map(int, list(input()))
# print(A)

cnt = 0
for i in A:
    if int(i) == 1:
        cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
def solve():
    s = read()
    result = think(s)
    write(result)


def read():
    return read_line(n=3)


def read_int(n):
    return list(map(int, read_line().split()[:n]))


def read_line(n=0):
    if n == 0:
        return input().rstrip()
    else:
        return input().rstrip()[:n]


def think(s):
    return s.count('1')


def write(result):
    print(result)


if __name__ == '__main__':
    solve()

Submission status: Accepted

Solution code:
line = input()
count  = 0

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

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from collections import Counter


s = list(input())
s_cnt = Counter(s)
print(s_cnt['1'])

Submission status: Accepted

Solution code:
a=str(input())

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
bi_list = list(input())

print(bi_list.count('1'))

Submission status: Accepted

Solution code:
in1 = int(raw_input())
a = in1 // 100
b = (in1 - a * 100) // 10
c = in1 % 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:
a = input()
print(int(a[0]) + int(a[1]) + int(a[2]))

Submission status: Accepted

Solution code:
s = input()

# n = 0
# for i in s:
#     if int(i) == 1:
#         n += 1
n = 0
if s[0] == '1': n+=1
if s[1] == '1': n+=1
if s[2] == '1': n+=1

print(n)

Submission status: Accepted

Solution code:
s = input()

n = 0
for i in s:
    if int(i) == 1:
        n += 1
print(n)

Submission status: Accepted

Solution code:
input = list(input())

count = 0

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

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
import sys
INF = float("inf")


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


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
data = [x for x in input().rstrip()]
print(data.count("1"))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
input_number = list(map(int,input()))
count = 0
for number in input_number:
    if(number == 1):
        count += 1
    elif(number == 0):
        continue
print(count)

Submission status: Accepted

Solution code:
s = input()
cnt = 0
for si in s:
    if si == '1':
        cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:

s = input()

count = 0
for a in s:
    if a == '1':
        count += 1

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
c = 0
for i in s:
  if int(i) == 1:
    c += 1
print(c)
# be careful of dtype!

Submission status: Accepted

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

Submission status: Accepted

Solution code:
sss = int(input())
a = int(sss/100)
b = int((sss-100*a)/10)
c = int((sss-100*a-10*b))
print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
N = int(input())
count = 0
if N >= 50:
  count+=1
  N-=100
if N >=5:
  count+=1
  N-=10
if N>0.5:
  count+=1;
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
marbles = input()

sum = 0
for m in marbles:
  sum = sum + int(m)

print(str(sum))

Submission status: Accepted

Solution code:
print len([c for c in raw_input() if c == '1'])

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8

s = [int(i) for i in input().strip()]
print(s.count(1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
if __name__ == '__main__':
    s = list(map(int,list(input())))

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
import sys
import copy
import collections
from bisect import bisect_left
from bisect import bisect_right
from collections import defaultdict
from heapq import heappop, heappush
import math

# NO, PAY-PAY
#import numpy as np
#import statistics
#from statistics import mean, median,variance,stdev

def inputInt(): return int(input())
def inputMap(): return map(int, input().split())
def inputList(): return list(map(int, input().split()))
 
def main():
    s = input()
    ans = 0
    if s[0] == "1":
        ans += 1
    if s[1] == "1":
        ans += 1
    if s[2] == "1":
        ans += 1
        
    print(ans)
            	
if __name__ == "__main__":
	main()

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = str(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:
input_grid = input()
print(input_grid.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()

res = 0
for s in S:
    if s == "1":
        res += 1
print(res)

Submission status: Accepted

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

Submission status: Accepted

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

s = input()

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

print(ans)

Submission status: Accepted

Solution code:
S=str(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:
s = str(input())

counter = int()
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:
s = input()
a = 0


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

print(a)

Submission status: Accepted

Solution code:
str_=[i  for i in list(input() ) if i=="1"]
print(len(str_))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())
#print(s)
n= 0
for moji in s:
  if int(moji) == 1:
    n += 1
print(n)

Submission status: Accepted

Solution code:
line = list(input())
answer = 0
for l in line:
    if l == "1":
        answer += 1
print(answer)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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

print(cnt)

Submission status: Accepted

Solution code:
number = int(input())
count = 0
if number >= 50:
  count += 1
if number%100 >= 5:
  count += 1
if number%10 >= 0.5:
  count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

a = int(s[0])
b = int(s[1])
c = int(s[2])

print(a + b + c)

Submission status: Accepted

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

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:
# -*- coding: utf-8 -*-
import sys

box = [int(i) for i in input()]
count = box.count(1)
print(count)

Submission status: Accepted

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

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:
data = input().split()#lines[0]つまり１行目をスペースで区切る.dataは配列
num = data[0]
count = 0

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

print(count)

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = input()
ans = 0
for i in range(0, 3):
	ans += int(S[i])
print(ans)

Submission status: Accepted

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

print(a)

Submission status: Accepted

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

# input
s = input()

# solve & output
print(s.count('1'))

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

Submission status: Accepted

Solution code:
a,b=input(),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()
s= list(s)
count=0
for i in s:
    if(i=="1"):
        count+=1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a = str(input())
list(a)
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:
ns = tuple(input())
cnt = 0
for n in ns:
  if(n == '1'):
    cnt += 1

print(cnt)

Submission status: Accepted

Solution code:
str = input()

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

Submission status: Accepted

Solution code:
blocks = str(input())

cnt = 0
for i in blocks:
    if int(i) == 1:
        cnt += 1

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
def placingMarbles():
	s = map(int,list(input()))
	count = 0
	for i in s:
		if i == 1:
			count += 1
	print(count)

placingMarbles()

Submission status: Accepted

Solution code:
b = input()
a = int(b)
s = 0
for x in range(len(b)):
    s += a % 10
    a = a // 10
print(s)

Submission status: Accepted

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

cou = 0
for tmp in a:
    if tmp == "1":
        cou += 1

print(cou)

Submission status: Accepted

Solution code:
print(sum([int(i) for i in list(str(input()))]))

Submission status: Accepted

Solution code:
s1,s2,s3 = map(int,input())
s = [s1,s2,s3]
print(s.count(1))

Submission status: Accepted

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

print(ans)

Submission status: Accepted

Solution code:
n = int(input())

print(int(((n / 100) + ((n % 100) / 10) + ((n % 10) / 1))))

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

x = input()

total = 0

if x[0] == '1':
    total += 1
    
if x[1] == '1':
    total += 1
    
if x[2] == '1':
    total += 1
    
print(total)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
num = 0
tmp = input()
if( tmp[0] =='1'):
	num+=1
if( tmp[1] =='1'):
	num+=1
if( tmp[2] =='1'):
	num+=1
print(num)

Submission status: Accepted

Solution code:
a = int(input())
sum = 0

if a / 100 >= 1:
    sum += 1
    a = a - 100
if a / 10 >= 1:
    sum += 1
    a = a - 10
if a >= 1:
    sum += 1
print(sum)

Submission status: Accepted

Solution code:
s = str(input())

cnt = 0

for c in s:
  if c == '1' :
    cnt += 1


  
print(cnt)

Submission status: Accepted

Solution code:
# coding: utf-8
# input place number
s = input()
#print(s[0], s[1], s[2])
 
def main():
    count = 0
    for i in range(3):
        #print(s[i])
        if s[i] == '1':
            count = count + 1
 
    print(count)
 
if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
S = input()
print("{}".format(int(S[0]) + int(S[1]) + int(S[2])))

Submission status: Accepted

Solution code:
a  = input()
b = str(a)
c = 0
for n in b:
    if n == str(1):
        c += 1
print(c)

Submission status: Accepted

Solution code:
n = list(str(input()))
c = 0

for i in n:
    if i == "1":
        c += 1

print(c)

Submission status: Accepted

Solution code:
data = input()
count_one = 0
for i in range(len(data)):
  num = int(data[i])
  if (num == 1):
    count_one += 1
print(count_one)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#95
S = input()
print(S.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

line = list(input())
print(line.count("1"))

Submission status: Accepted

Solution code:
s1,s2,s3 = input()
result = 0
for x in [s1,s2,s3]:
  if x == "1":
    result += 1
print(result)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

in_num = input()

for n in range(len(in_num)):
    exec("s{} = int(in_num[{}])".format(n + 1, n))

print(s1 + s2 + s3)