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:
x=input()
X=list('{}'.format(x))
a=[]
for i in range(len(X)):
    a.append(int(X[i]))
A=sum(a)
print(A)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S = int(input())

ans = 0
for i in range(3):
    division , mod = divmod(S, 10**(2-i))
    ans += division
    S = mod
print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
in_str = input()
a = in_str[0]
b = in_str[1]
c = in_str[2]
a = int(a)
b = int(b)
c = int(c)

print(a+b+c)

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:
str1 = input()
s_list = list(str1)
str_len = len(str1)
n = 0
for i in range(str_len):
  if 1 == int(s_list[i]):
    n = n + 1
print(n)

Submission status: Accepted

Solution code:
a = int(input())
ans = 0
for i in range(3):
    ans += int(a / (10 ** (2 - i)))
    a %= 10 ** (2 - i)
print(ans)

Submission status: Accepted

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

Submission status: Accepted

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


print(a+b+c)

Submission status: Accepted

Solution code:
import sys

read = sys.stdin.read
readline = sys.stdin.readline
readlines = sys.stdin.readlines
sys.setrecursionlimit(10 ** 9)
INF = 1 << 60
MOD = 1000000007


def main():
    S = readline().strip()

    print(S.count('1'))

    return


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s1,s2,s3 = input()
count = 0
if s1 == "1":
    count += 1
if s2 == "1":
    count += 1
if s3 == "1":
    count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
n = str(input())
# N,A,B = map(int, input().split())
print(n.count('1'))

Submission status: Accepted

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


def main():
    s = input().strip()

    num = 0
    for m in s:
        if int(m) == 1:
            num += 1

    print(num)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
mass = input()

num = 0
for m in mass:
  if int(m) == 1:
    num += 1
    
print(num)

Submission status: Accepted

Solution code:
s = input()

cnt = 0

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

print(cnt)

Submission status: Accepted

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

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:
S=input()
a=int(S[0])
b=int(S[1])
c=int((S[2]))
print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

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

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:
print(sum(int(X) for X in list(input())))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
Slist=list(input())

print(Slist.count("1"))

Submission status: Accepted

Solution code:
s = input()

print(s.count('1'))

Submission status: Accepted

Solution code:
a=input()

print(a.count("1"))

Submission status: Accepted

Solution code:
abc = list(input())

result = 0
for s in abc:
  if s == '1':
    result += 1
print(result)

Submission status: Accepted

Solution code:
a,b,c = input()

i=0
if a=="1":
    i=i+1
if b=="1":
    i=i+1
if c=="1":
    i=i+1
print(i)

Submission status: Accepted

Solution code:
s = str(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:
s = input().rstrip();
s = list(s);

result = 0;

if s[0] == "1":
    result += 1;

if s[1] == "1":
    result += 1;

if s[2] == "1":
    result += 1;

print(result);

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a,b,c=map(int,input()) #入力を1行でスペースなし

print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

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

s = int(input())

sum = s // 100 + s % 100 // 10 + s % 10

print(sum)

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:
def resolve():
    S = input()
    ans = 0
    if S[0] == "1":
        ans += 1
    if S[1] == "1":
        ans += 1
    if S[2] == "1":
        ans += 1
    print(ans)
resolve()

Submission status: Accepted

Solution code:
s = input()
counter = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
def input(): return sys.stdin.readline().strip()


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


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
from sys import stdin

a = stdin.readline().rstrip()

count = 0

for b in a:
  if b == "1": count = count + 1

print(count)

Submission status: Accepted

Solution code:
din =input()
out = 0
for ind in range(len(din)):
  out = out + int(din[ind])
print(out)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
A, B, C = input()
print(int(A)+int(B)+int(C))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()
N = 0

for i in range(len(s)):
    if s[i] == "1":
        N +=1
    else:
        pass

print(N)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
b = list(a)

c = b.count('1')
print(c)

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

a = input()

print(a.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = map(str, input())
counter_list = []
for n in a:
    counter_list.append(n)
print(counter_list.count('1'))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
s = map(int,  list(input()))
print(sum(s))

Submission status: Accepted

Solution code:
l = list(map(int, input()))
f = sum(filter(lambda x: x > 0, l))
print(f)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#n=int(input())
#a,b=map(int,input().split())
#l=list(map(int,input().split()))
#l=[list(map(int,input().split())) for i in range(n)]
s=list(input())
print(s.count('1'))

Submission status: Accepted

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

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:
s = input()
count = 0
for x in s:
  if x != '0':
    count = count + 1
print(count)

Submission status: Accepted

Solution code:
s = input()
count = 0

for char in s:
    if char == "1":
        count += 1
print(count)

Submission status: Accepted

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

S = input()

cnt = 0
for s in S:
    if(s=='1'):
        cnt+=1

print(cnt)

Submission status: Accepted

Solution code:
x = list(input())
counter = 0

if x[0] == "1":
  counter += 1

if x[1] == "1":
  counter += 1

if x[2] == "1":
  counter += 1

print(counter)

Submission status: Accepted

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

Submission status: Accepted

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

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:
table=list(str(input()))
num=0
for i in range(3):
    if int(table[i])==1:
        num+=1

print(num)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
print(3-input().count('0'))

Submission status: Accepted

Solution code:
ball = input()

print(ball.count("1"))

Submission status: Accepted

Solution code:
a = int(input())
if a%3 ==2:
    print(2)
elif a%3 ==1:
    print(1)
elif a == 111:
    print(3)
else :
    print(0)

Submission status: Accepted

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

print(cnt)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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:
# input
S = list(input())

# check
print(S.count("1"))

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:
Count=0
for j in input():
    if int(j) == 1:
        Count +=1
print(Count)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
t = input()

ans = 0

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

Submission status: Accepted

Solution code:
num = list(input())

output = 0 

for i in num:
    if i =='1':
        output += 1
    
print(output)

Submission status: Accepted

Solution code:
s = str(input())
#print(s[0])

ans = s.count('1') #各要素の個数をカウント
print(ans)

Submission status: Accepted

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

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:
# A Placing Marbles

s = input()

cnt = 0
for si in s:
  if si == "1":
    cnt += 1
print(cnt)

Submission status: Accepted

Solution code:
S = input()
cnt = 0

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
st_list = list(input())
s = 0
for i in range(3):
    s += int(st_list[i])
print(s)

Submission status: Accepted

Solution code:
# coding: utf-8

input_ = input()

count = 0

for i in range(3):
    if int(input_[-(i + 1)]) == 1:
        count += 1

print(count)

Submission status: Accepted

Solution code:
a=str(input())

#print(a)
p=0
for i in a:
  #print(i)
  if i=="1":
    p+=1
    
print(p)

Submission status: Accepted

Solution code:
def main():
    print(len([x for x in input() if x is "1"]))


if __name__ == '__main__':
    main()

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = input()

s = list(s)

print(s.count("1"))

Submission status: Accepted

Solution code:
a=input()

print(a.count('1'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
v = input()
x = str(v)
cnt = 0
for s in range(3):
   if x[s] == "1":
      cnt +=1
print(cnt)

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
s  = input()
print(s.count("1"))

Submission status: Accepted

Solution code:
###==================================================
### import
#import bisect
#from collections import Counter, deque, defaultdict
#from copy import deepcopy
#from functools import reduce, lru_cache
#from heapq import heappush, heappop
#import itertools
#import math
#import string
import sys
### stdin
def input(): return sys.stdin.readline().rstrip()
def iIn(): return int(input())
def iInM(): return map(int, input().split())
def iInM1(): return map(int1, input().split())
def iInLH(): return list(map(int, input().split()))
def iInLH1(): return list(map(int1, input().split()))
def iInLV(n): return [iIn() for _ in range(n)]
def iInLV1(n): return [iIn()-1 for _ in range(n)]
def iInLD(n): return [iInLH() for _ in range(n)]
def iInLD1(n): return [iInLH1() for _ in range(n)]
def sInLH(): return list(input().split())
def sInLV(n): return [input().rstrip('\n') for _ in range(n)]
def sInLD(n): return [sInLH() for _ in range(n)]
### stdout
def OutH(lst, deli=' '): print(deli.join(map(str, lst)))
def OutV(lst): print('\n'.join(map(str, lst)))
### setting
sys.setrecursionlimit(10 ** 6)
### utils
int1 = lambda x: int(x) - 1
### constants
INF = int(1e9)
MOD = 1000000007
dx = (-1, 0, 1, 0)
dy = (0, -1, 0, 1)
###---------------------------------------------------

S = input()

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

Submission status: Accepted

Solution code:
import bisect,collections,copy,heapq,itertools,math,string
import sys
def S(): return sys.stdin.readline().rstrip()
def M(): return map(int,sys.stdin.readline().rstrip().split())
def I(): return int(sys.stdin.readline().rstrip())
def LI(): return list(map(int,sys.stdin.readline().rstrip().split()))
def LS(): return list(sys.stdin.readline().rstrip().split())
s = S()
print(s.count('1'))

Submission status: Accepted

Solution code:
a, b, c = list(input())

ans = 0
if a == '1':
  ans += 1
if b == '1':
  ans += 1
if c == '1':
  ans += 1

print(ans)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = list(map(int, list(input())))
count = 0

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

print(count)

Submission status: Accepted

Solution code:
value = int(input())

lst = []

while value > 0:
    lst.append(value % 10)
    value //= 10

lst.reverse()
answer = 0
for i in lst:
    if i == 1:
        answer += 1

print(answer)

Submission status: Accepted

Solution code:
in_str= str(input())

a = int(in_str[:1])
b = int(in_str[1:2])
c = int(in_str[2:])

sum = a + b + c

print(sum)

Submission status: Accepted

Solution code:
# ３桁の整数の入力
s = input()
i = 0
# 1から3桁目までの繰り返し
for j in range(3):
# 1桁目のチェック
	if s[j] == '1':
		i += 1
	else:
		i += 0

print(i)

Submission status: Accepted

Solution code:
a = input()
b = list(map(int, a))
print('{}'.format(b.count(1)))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
#
# Author: Tetsuya Ishikawa <tiskw111@gmail.com>
# Date  : June 30, 2020
##################################################### SOURCE START #####################################################

ss = input().strip()
xs = [1 for s in ss if s == '1']
print(sum(xs))

##################################################### SOURCE FINISH ####################################################
# vim: expandtab tabstop=4 shiftwidth=4 fdm=marker

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
S=input()

print(S.count("1"))

Submission status: Accepted

Solution code:
from collections import Counter
s = list(input())
cs = Counter(s)
print(cs['1'])

Submission status: Accepted

Solution code:
import sys
S = list(map(int,input()))

print(S.count(1))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a=int(input())
sum=0
if a//100==1:
   sum+=1
if a//10==1 or a//10==11:
    sum+=1
if a%2==1:
    sum+=1
print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
s = input()
print(s.count('1'))
# 全探索

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
import math
import numpy as np
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
def s(): return input()
def i(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
INF = 10**9
mod = 10**9+7

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s1s2s3 = input()

print(s1s2s3.count('1'))

Submission status: Accepted

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

Submission status: Accepted

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

print(sum)

Submission status: Accepted

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

Submission status: Accepted

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

s = str(input())

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

Submission status: Accepted

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

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:
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:
N = list(input())
print(N.count("1"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
from sys import stdin

data = stdin.readlines()

list = [int(data[0][0]),int(data[0][1]),int(data[0][2])]

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

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:
# -*- coding: utf-8 -*-
print(input().count("1"))

Submission status: Accepted

Solution code:
s=list(input())
from collections import Counter
s_count=Counter(s)
print(s_count['1'])

Submission status: Accepted

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

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:
num = int(input())
a = num // 100
b = (num - 100 * a) // 10
c = num - 100 * a - 10 * b

count = 0
if a == 1:
  count += 1
if b == 1:
  count += 1
if c == 1:
  count += 1
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

print(A[0]+A[1]+A[2])

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

Submission status: Accepted

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

Submission status: Accepted

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

s = input()
print(actual(s))

Submission status: Accepted

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

Submission status: Accepted

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

print(ans)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input()
li = [ int(x) for x in list(str(a))]

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

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

count = 0
a = s // 100
b = s // 10

if a == 1:
    count += 1
if b == 1 or b == 11:
    count += 1
if s % 2 == 1:
    count += 1

print(count)

Submission status: Accepted

Solution code:
s1, s2, s3 = [int(s) for s in input()]
print(s1 + s2 + s3)

Submission status: Accepted

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

Submission status: Accepted

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

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:
input_ = input()
a, b, c = int(input_[0]), int(input_[1]), int(input_[2])
print(a+b+c)

Submission status: Accepted

Solution code:
a=input()
a1=str(a)
b=0
for x in a:
  if x=='1':
    b+=1
  else:
    continue
print(b)

Submission status: Accepted

Solution code:
s = list(input())

count = 0
for i in s:
    if i == "1":
        count += 1
    else:
        count +=0
        
print(count)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding-utf8 #

s = input()

count = 0

for char in s:
  if char == '1':
    count += 1

print(count)

Submission status: Accepted

Solution code:
s = str(input())
#abc
a = int(s[0])
b = int(s[1])
c = int(s[2])

print(a+b+c)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

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=list(input())
print(S.count("1"))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
s = list(input())

print(s.count('1'))

Submission status: Accepted

Solution code:
import sys
from itertools import combinations
import math


def I(): return int(sys.stdin.readline().rstrip())


def LI(): return list(map(int, sys.stdin.readline().rstrip().split()))


def S(): return sys.stdin.readline().rstrip()


def LS(): return list(sys.stdin.readline().rstrip().split())


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

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

Submission status: Accepted

Solution code:
s = input()
c = 0

if s[0] == "1":
  c = c+1
if s[1] == "1":
  c = c+1
if s[2] == "1":
  c = c+1

print(c)

Submission status: Accepted

Solution code:
s = input()

result = 0
for _s in s:
    if _s == '1':
        result += 1

print(result)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
a = input().split()

num = 0

for i in range(3):
  if a[0][i] == str(1):
    num += 1
    
print(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import sys
input = lambda: sys.stdin.readline().rstrip()

def main():
    s = list(input())
    print(s.count('1'))

if __name__ == '__main__':
    main()

Submission status: Accepted

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

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:
a = input()

print(a.count("1"))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#! env python
# -*- coding: utf-8 -*-

import os
import sys


# ac_py.main
# Date: 2020/06/08
# Filename: main 
# Author: acto_mini

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


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
line = int(input())
cnt =0

if int(line /100) == 1:
  cnt +=1
  line -=100
if int(line/10) ==1:
  cnt +=1
  line -=10

if int(line/1) ==1:
  cnt +=1
print(cnt)

Submission status: Accepted

Solution code:
a = input()
num = [int(i) for i in a]
print(sum(num))

Submission status: Accepted

Solution code:
marbles = input()

count = 0

for s in marbles:
    if s == '1':
        count += 1

print(count)

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

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

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:
from collections import Counter

s = input()
count = Counter(s)
#print(count)
num = count['1']
print(num)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math

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

print(ans)