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: Runtime Error

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

counter = 0

if board[0] == "1":
  counter++
if board[1] == "1":
  counter++
if board[2] == "1":
  counter++
  
print(counter)

Submission status: Runtime Error

Solution code:
S1,S2,S3=map(input().split())
print(input().count("1"))

Submission status: Runtime Error

Solution code:
S1,S2,S3=map(input().split())
print(count"1")

Submission status: Runtime Error

Solution code:
print(map(lambda x : x = x + 1 , input())

Submission status: Runtime Error

Solution code:
sss = input()
s1 = int(sss[0])
s2 = int(sss[1])
s3 = int(sss[2])
print(%d, s1+s2+s3)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
count = 0
while all(a % 2 == 0 for a in A):
    A = [a/2 for a in A]
    count +=1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
l=str(s1,s2,s3)
print(l.count(1)

Submission status: Runtime Error

Solution code:
l=str(s1s2s3)
print(l.count(1))

Submission status: Runtime Error

Solution code:
l=str(s1s2s3)
print(l.count(1)

Submission status: Runtime Error

Solution code:
s1,s2,s3=map(int,input().split())
if 0 == (s1+s2+s3):
  print('0')
elif 1 == (s1+s2+s3):
  print('1')
elif 2 == (s1+s2+s3):
  print('2')
else 3 == (s1+s2+s3):
  print('3')

Submission status: Runtime Error

Solution code:
s1,s2,s3=map(int,input().split())
if 0 == (s1+s2+s3):
  print(0)
elif 1 == (s1+s2+s3):
  print(1)
elif 2 == (s1+s2+s3):
  print(2)
else 3 == (s1+s2+s3):
  print(3)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
if 0 == ((a*b)%2):
  print('even')
else:
  print('Odd')

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

def 割れる回数(a):
    回数 = 0
    while a % 2 == 0:
        回数 += 1
        a = a // 2
    return 回数

割れる回数のリスト = [割れる回数(a_i) for a_i in a]
答え = min(割れる回数のリスト)
print(答え)

Submission status: Runtime Error

Solution code:
_ = int(input())

num_list = list(map(int, input().split()))

count = 0
is_all_even = None 
while True:
    for num in num_list:
        if num % 2 != 0:
            is_all_even = False
            break
    if is_all_even is not None:
        break
    count += 1
    num_list = list(map(lambda x: x / 2, num_list))
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
string s = input()

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

Submission status: Runtime Error

Solution code:
s = input()

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

Submission status: Runtime Error

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

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

Submission status: Runtime Error

Solution code:
s[] = input().split()

count = 0

if (s[0] == '1'):
    count++
if (s[1] == '1'):
    count++
if (s[2] == '1'):
    count++

print(count)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
count = 0
if a == 1:
  count += 1
if b == 1:
  count += 1
if c == 1:
  count += 1
print(count)

Submission status: Runtime Error

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

print(count)

Submission status: Runtime Error

Solution code:
list=[int(i) for i in input().split()]
a=0
for i in list:
    if i==1:
        a=a+1
    elif:
        a=a+0
print(a)

Submission status: Runtime Error

Solution code:
# coding: utf-8

s = input()

sum = int(0)

if s[0] = 1:
    sum++
if s[1] = 1:
    sum++
if s[2] = 1:
    sum++

print(sum)

Submission status: Runtime Error

Solution code:
n = int(input())
numbers = list(map(int, input().split()))
ans = 0
while True:
    index = 1
    for i in range(n):
        if numbers[i] % 2 == 0:
            numbers[i] = numbers[i] / 2
        else:
            index = 0
            break
    if index == 1:
        ans += 1
    else:
        break
print(ans)

Submission status: Runtime Error

Solution code:
from sys import stdin
s1, s2, s3 = [x for x in list(stdin.readline())]

Submission status: Runtime Error

Solution code:
from sys import stdin
s1, s2, s3 = [x for x in list(stdin.readline())]
print(int(s1)+int(s2)+int(s3))

Submission status: Runtime Error

Solution code:
from sys import stdin
[int(x) for x in list(stdin.readline())]

Submission status: Runtime Error

Solution code:
from sys import stdin
[for x in list(stdin.readline())]

Submission status: Runtime Error

Solution code:
from sys import stdin

[int(x) for x in list(stdin.readline())]

Submission status: Runtime Error

Solution code:
from sys import stdin

s1, s2, s3 = [int(x) for x in list(stdin.readline())]

print(str(s1+s2+s3))

Submission status: Runtime Error

Solution code:
from sys import stdin

s1, s2, s3 = [int(x) for x in list(stdin.readline())]

print(s1+s2+s3)

Submission status: Runtime Error

Solution code:
N = int(input())
A_list = list(map(int,input().split()))

iter_num_list = []
for a in A_list:
    count = 0
    while a%2 == 0:
        a = a/2
        count += 1
    iter_num_list.append(count)
ans = sorted(iter_num_list)[0]
print(ans)

Submission status: Runtime Error

Solution code:
#(問3)ANS-1
iter = map(int,input().split())
all_list = []
for i in iter:
    all_list.append(i)
N = all_list[0]
A_list = all_list[1:]

iter_num_list = []
for a in A_list:
    count = 0
    while a%2 == 0:
        a = a/2
        count += 1
    iter_num_list.append(count)
ans = sorted(iter_num_list)[0]
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input()
a = list(map(int, input().split()))
counter = 0
while True:
    if all([(i % 2 == 0) for i in a]):
        a = [int(i / 2) for i in a]
        counter += 1
    else:
        break
print(counter)

Submission status: Runtime Error

Solution code:
input()
a = list(map(int, input().split()))
counter = 0
while 1:
    if all([(i % 2 == 0) for i in a]):
        a = [int(i / 2) for i in a]
        counter += 1
    else:
        break
print(counter)

Submission status: Runtime Error

Solution code:
n = map(int, input().split())
ans = n.count('1')

print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
 
count=0
ans=a[0]
for i in range(n):
  count=0
  while(a[i]%2==0):
    a[i]=a[i]//2
    count+=1
  ans=min(ans,count)
  
print(ans)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
 
count=0
ans=a[0]
for i in range(n):
  count=0
  while(a[i]%2==0):
    a[i]=a[i]//2
    count+=1
  ans=max(ans,count)
  
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import random
input()
print(random.random(0,3))

Submission status: Runtime Error

Solution code:
import random
print(random.random(0,3))

Submission status: Runtime Error

Solution code:
input()

A = list(map(int, input().split()))
count = 0

while all(a %2 == 0 for a in A):
  A = [a/2 for a in A]
  count += 1
print(count)

Submission status: Runtime Error

Solution code:
a, b, c = map(int, input().split())
if a + b + c > 0:
  print(a + b + c)
else:
  print(0)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
"""
Created on Sat Mar 21 12:49:13 2020

@author: 藤原聖士
"""

N=int(input())
A=[]

check=0
answer=-1
for i in range(N):
    A.append(int(input()))
    check=A[i]
    #print(A)
    count=0
    while check % 2==0:
        count+=1
        check=check/2
        #print(check)
    if answer>count:
        answer=count
    elif answer== -1:
        answer=count
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
num = list(map(int, input().split(" ")))
oparation = 10 ^ 8

for i in range(N):
    temp = 0
    while(1):
        if(num[i] % 2 or num[i] == 0):
            break
        else:
            num[i] /= 2
            temp += 1
    if(oparation > temp):
        oparation = temp

print(oparation)

Submission status: Runtime Error

Solution code:
N=int(input())
num=map(int,input().split(" "))
oparation=10^8

for i in range(N):
    temp=0
    while(1):
        if(num[i]%2 or num[i]=0):
            break:
        else:
            num[i]/=2
            temp+=1
    if(oparation>temp):
        oparation=temp

print(oparation)

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
count=0
while all(a%2==0 for a in A):
  A=[a/2 for a in A]
  count+=1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = [bin(int(x))[2:] for x in input().split()]
a = [len(x) - (x.rfind('1') + 1) for x in a]
print(min(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
num_list = list(map(int, input().split(" ")))

def devision(num_list, count):
    new_num_list = []
    for num in num_list:
        if num%2 ==0:
            new_num_list.append(num//2)
        else:
            print(count)
            return
    count += 1
    return devision(new_num_list, count)

devision(num_list, 0)

Submission status: Runtime Error

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

list = [s1, s2, s3]
ball = 0

for item in list:
    if item == 1:
        ball += 1

print(ball)

Submission status: Runtime Error

Solution code:
s1,s2,s3 = map(int,input().split())
a = [s1, s2, s3]
x = 0

for num in a:
    if num == 1:
        x += 1
    else:
        x += 0

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
numbers = list(map(int, input().split()))
count = [0]*n

for i in range(n):
  while True:
    if numbers[i]%2 == 1:
  	  break
    numbers[i] = numbers[i]/2
    count[i] += 1
  
print(min(count))

Submission status: Runtime Error

Solution code:
n = int(input())
numbers = list(map(int, input().split()))
count = [0]*n

for i in range(n):
  if numbers[i]%2 == 1:
    continue
  numbers[i] = numbers[i]/2
  count[i] += 1
  
print(min(count))

Submission status: Runtime Error

Solution code:
n = int(input())
numbers = list(map(int, input().split()))

res = 0

for i in range(n):
  count = 0
  while True:
    if numbers[i]%2 == 1:
      break
    numbers[i] = numbers[i]/2 
    count += 1
  
  if count > res:
    res = count

print(res)

Submission status: Runtime Error

Solution code:
n = int(input())
numbers = list(map(int, input().split()))

res = 0

for i in range(n):
  count = 0
  while True:
    if numbers[i]%2 == 1:
      break
    else:
      count += 1
  
  if count > res:
    res = count

print(res)

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))

def how_many_times(x):
    n=0
    while x%2==0:
        x=x//2
        n+=1
    return n

print(min(map(how_many_times, a)))

Submission status: Runtime Error

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

cnt = 0
while True:
  flag = 0
  for i in range(N):
    if A[i] % 2 == 1:
      flag = 1
      break
    else:
      M[i] = M[i] / 2
  if flag == 1:
    print(cnt)
  else:
    cnt += 1

Submission status: Runtime Error

Solution code:
s = input()

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

print(str(s1+s2+s3))

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int, input().split())
sum = s1 + s2 + s3

print(str(sum))

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int,input().split())
sum = s1 + s2 + s3

print(sum)

Submission status: Runtime Error

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

cnt =0

while True:
    if [i for i in A if i%2 == 1]:
        break
    A = [i/2 for i in A if i%2 ==0]
    cnt += 1
    
prnt(cnt)

Submission status: Runtime Error

Solution code:
s = list(input())
numbers = 0
for i in s:
  if s[i] ==  "1":
    numbers += 1

print(numbers)

Submission status: Runtime Error

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

print(numbers)

Submission status: Runtime Error

Solution code:
import sys
Row = input()
List = [int(j) for j in input().split()]
for i in range(len(List)):
    ans = List[i] % 2
    if ans == 1:
        print(0)
        sys.exit()

count = 0
flg = 0
while flg == 0:
    count = count + 1
    for j in range(len(List)):
        List[j] = List[j] / 2
        if List[j]%2:
            flg = 1
            break
print(count)

Submission status: Runtime Error

Solution code:
s = map(int, input().split())
n = 0
i = 0
cout = 0
for i in s:
  if s[i] % 2 == 0:
    cout += 1
  else:
    cout += 0
print(cout)

Submission status: Runtime Error

Solution code:
m = int(input())
number_list = list(map(int,input().split()))
n = 0
while 1:
    f = False
    for i in range(0,m):
        if number_list[i] % 2 != 0:
            f = True
    if f == True:
        break
    for i in range(0,m):
        number_list[i] = number_list[i] / 2
    n += 1
print(n)

Submission status: Runtime Error

Solution code:
a,b,c = [int(i), for i in input()]

print(a+b+c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
S = int(input())
i = 0
C = 0

while i < 3:
  if S[i] == 1:
    C += 1
  i += 1
  
print(str(C))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

which a < 1:
  if a%10 == 1:
    s += 1

print(s)

Submission status: Runtime Error

Solution code:
count=0
int a,b,c=map(int,input().split())
if a>0:
	count+=1
if b>0:
	count+=1
if c>0:
	count+=1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np
a = np.array([int(x) for x in input().split()])
count = 0
x = 0

while x == 0:
    if np.all(a%2 ==0):
        count+=1
        a = a/2
    else:
        break


print(count)

Submission status: Runtime Error

Solution code:
import math
n = input()
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=input()
list0=[000]
list1=[100,010,001]
list2=[110,101,011]
list3=[111]
if s in list0:
    print(0)
if s in list1:
    print(1)
if s in list2:
    print(2)
if s in list3:
    print(3)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
a = []
for i in range(len(s)):
  a.append(s[i])
  

count = 0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

n = int(input())
a = list(map(int, input().split()))

ans = float("inf") #ansに無限を代入

for i in a:
    ans = min(ans, len(bin(i)) - bin(i).rfind("1") - 1)
print(round(ans))

Submission status: Runtime Error

Solution code:
a = string(input())
n = 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: Runtime Error

Solution code:
a = string(input())
n = 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: Runtime Error

Solution code:
a = input()
a = str(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: Runtime Error

Solution code:
a = str(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: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b,c = map(int,input().split())

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

Submission status: Runtime Error

Solution code:
s = str(input())

count = 0

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

print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
L = list(map(int, input().split()))
K = -1
bool1 = True

while(bool1 == True):
    K +=1
    for k in range(n):
        if L[k] %2 ==0:
            L[k] = L[k]/2

        else:
            bool1 = False
            break

print(K)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))
l = []
for i in a:
    count = 0
    for j in range(1, 31):
        if i%(2**j) == 0:
            count += 1
        else:
            l.append(count)
            break
print(min(l))

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
c = 0
i = 0
 
while a[i]%2 == 0:
  if a[i]%2 ==0:
    a[i]//=2
  if i==n-1:
    c+=1
    i = 0
  i+=1
print(c)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
count = 0
i = 0
 
while a[i]%2 == 0:
  if a[i]%2 ==0:
    a[i]//=2
  if i == n-1:
    count +=1
    i = 0
  i += 1
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
c = 0
i = 0
 
while a[i]%2 == 0:
  if a[i]%2 ==0:
    a[i]//=2
  if i == n-1:
    c +=1
    i = 0
  i += 1
print(c)

Submission status: Runtime Error

Solution code:
n = int(input())
a = [int(i) for i in input().split()]
c = 0
i = 0

while a[i]%2 == 0:
  if a[i]%2 ==0:
    a[i]//=2
  if i == n-1:
    count +=1
    i = 0
  i += 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
existing_list = list(map(int,input().split()))

counts = 0 
while all(num%2 ==0 for num in existing_list):
    length = 0
    for a in existing_list:
        division = a/2
        existing_list[length]=division
        length +=1
    counts +=1

print(counts)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = int(input())
listA = list(map(int, input()))
cnt = 0

while(True):
    for A in listA:
        if A % 2 != 0:
            break
        else:
            A = A / 2
    
    cnt += 1
print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
array = [int(input()) for i in range(n)]
def shift_only(array):
    tmp = []
    counter = 0
    while True:
        flag = True
        for num in array:
            if num%2 != 0:
                flag = False
        if flag == False:
            break
        array = [i/2 for i in array]
        counter +=1
    print(counter)
shift_only(array)

Submission status: Runtime Error

Solution code:
n = int(input())
array = [int(input()) for i in range(n)]
def shift_only(array):
    tmp = []
    counter = 0
    while True:
        flag = True
        # 全て偶数かを確認
        for num in array:
            if num%2 != 0:
                flag = False
        if flag == False:
            break
        array = [i/2 for i in array]
        counter +=1
    print(counter)
shift_only(array)

Submission status: Runtime Error

Solution code:
num_list = list(input())
count = 0
if num[0] == "1": count +=1 
if num[1] == "1": count +=1 
if num[2] == "1": count +=1 
print(str(count))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s1=input()
s2=input()
s3=input()

s1=int(s1)
s2=int(s2)
s3=int(s3)

print(s1+s2+s3)

Submission status: Runtime Error

Solution code:
numbers = input()
number = list(number)
sum = 0
if number[0] == 1:
  sum = sum + 1
if number[1] == 1:
  sum = sum + 1
if number[2] == 1:
  sum = sum + 1
print(sum)

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split()))
c=0
if s[0]==1:
    c+=1
if s[1]==1:
    c+=1
if s[2]==1:
    c+=1

print(c)

Submission status: Runtime Error

Solution code:
s=input().split()
c=0
if s[0]==1:
    c+=1
if s[1]==1:
    c+=1
if s[2]==1:
    c+=1

print(c)

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
a == 1 or a == 0
b == 1 or b == 0
c == 1 or c == 0

print('a + b + c')

Submission status: Runtime Error

Solution code:
n,k = map(int,input().split())
a = [int(i) for i in input().split()]

c = list(set(a))

count = 0
if len(c) <= k:
    print(0)
else:
    while len(c) > k:
        minv = 10**3
        for i in c:
            o = a.count(i)
            if minv > o:
                minv = o
                atai = i
        c.remove(atai)
        count += minv
 
    print(count)

Submission status: Runtime Error

Solution code:
a,b = (int(x) for x in input().split())
if a*b%2 == 0:
    print('Even')
else:
    print('Odd')

Submission status: Runtime Error

Solution code:
n = int(input())
nums = list(map(int, input().split()))

num_dvd = 0
 
can_devide = True
temp_list = []
while can_devide:
  for num in nums:
    if num % 2 == 1:
      can_devide = False
      print(num_dvd)
      break
    else:
      temp_list.append(num // 2)
  num_dvd += 1
  nums, temp_list = temp_list, []

Submission status: Runtime Error

Solution code:
n = input()
nums = map(int, input().split())
 
num_dvd = 0

can_devide = True
temp_list = []
while can_devide == True:
  for num in nums:
    if num % 2 == 1:
      print(num_dvd)
      can_devide == False
    else:
      temp_list.append(num // 2)
  num_dvd += 1
  nums, temp_list = temp_list, []

Submission status: Runtime Error

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

print(counter)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
li= list(map(int,input().split())) 	
Ans=27
ans=0

for i in range(N):
	if li[i]%2==1:
		Ans=0
		break
	else:
		n=li[i]
		ans=0
		while n%2==0:
			n=n/2
			ans= ans+1
		if Ans>ans:
			Ans =ans

print(Ans)

Submission status: Runtime Error

Solution code:
N=int(input())
li= list(map(int,input().split())) 	
ans=1
minNum=10**9

for i in range(N):
	if li[i]%2==1:
		ans=0
		break
	elif li[i] < minNum:
		minNum = li[i]
		
if not ans==0:
	n=minNum
	ans=0	
	while n%2==0:
		n=n/2
		ans= ans+1

print(ans)

Submission status: Runtime Error

Solution code:
a, b = map(int, input().split())
if （a * b） % 2 == 0:
  print('Even')
else:
  print('Odd')

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input().split()))

res = True
cnt = 0

while res:
    for i in range(n):
        if a[i]%2 != 0:
            res = False
            break

        a[i] = a[i]/2

    if res:
        cnt += 1

print(cnt)

Submission status: Runtime Error

Solution code:
def calc(c, cnt):
    r = [i % 2 for i in c]
    if sum(r) > 0:
        print(cnt)
        return 1
    else:
        for k, num in enumerate(c):
            c[k] = num / 2
        cnt += 1
        if calc(c, cnt) == 1:
            return 1
        

N = int(input())
c = [int(i) for i in input().rstrip().split(' ')]
calc(c, 0)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
 
# スペース区切りの整数の入力
a = input()
b = 0
for i in range(3):
	if a[i] =='1':
    	b += 1
print(b)

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
if (a+b+c)=3:
  print("3")
elif (a+b+c)=2:
  print("2")
elif (a+b+c)=1:
  print("1")
else :
  print("0")

Submission status: Runtime Error

Solution code:
a,b,c=map(int,input().split())
index=0
if (a+b+c)=3:
  print("3")
elif (a+b+c)=2:
  print("2")
elif (a+b+c)=1:
  print("1")
else :
  print("0")

Submission status: Runtime Error

Solution code:
s = int(input())

print(s.count(1))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = []
counter = 0
a = input().split()
success_result = [0] * n
while True:
    for index, item in enumerate(a):
        if int(item) % 2 == 0:
            a[index] = int(item) / 2
            success_result[index] = True
        else:
            continue
    if all(success_result):
        counter += 1
        success_result = [None for _ in range(n)]
    else:
        break
print(counter)

Submission status: Runtime Error

Solution code:
    n = int(input())
    a = []
    count = 0
    for i in range(n):
        a.append(input())
    while True:
        for index, item in enumerate(a):
            if item % 2 == 0:
                a[index] = item / 2
                count += 1
            else:
                break
    print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input())
if a==000:
    print(0)
eif a==001 or 010 or 100:
    print(1)
elif a==111:
    print(3)
else:
    print(2)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(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: Runtime Error

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


d = 0

if a = 1:
  d + 1

if b = 1:
  d + 1
  
if c = 1:
  d + 1
  
print(d)

Submission status: Runtime Error

Solution code:
s_input = string(input())

s_1 = s_input[0:1]
s_2 = s_input[1:2]
s_3 = s_input[2:3]

count = 0

s_list = [s_1, s_2, s_3]

for s in s_list:
	if s == "1":
		count = count + 1
	elif
    	None
      
print(count)

Submission status: Runtime Error

Solution code:
s_input = string(input()) 
s_list = [s[0], s[1], s[3]]

cnt_up = 0
for s in s_list
	if s == "1":
    	cnt_up = cnt_up +1
    else:
    	None
        
print(cnt_up)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(str, input().split())
list = [s1, s2, s3]
bidama_num = 0
for item in list:
  if item == "1":
    bidama_num += 1
 
print(str(bidama_num))

Submission status: Runtime Error

Solution code:
s1, s2, s3 = map(int, input().split())
list = [s1, s2, s3]
bidama_num = 0
for item in list:
  if item == 1:
    bidama_num += 1

Submission status: Runtime Error

Solution code:
Si = int(input())
S1 = int(str(Si[-3]))
S2 = int(str(Si[-2]))
S3 = int(str(Si[-1]))
result = 0
if S1:
  result += 1
if S2:
  result += 1
if S3:
  result += 1
print(result)

Submission status: Runtime Error

Solution code:
n = int(input())
listA = list(map(int, input().split()))
count = 0
isBroken = False


while True:
    for i in range(n):
        if listA[i] % 2 == 0:
            listA[i] //= 2
        else:
          isBroken = True
          break
    if isBroken:
        break
    else:
        count += 1


print(count)

Submission status: Runtime Error

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

step = 0
while True:
  flag = False
  for i range(N):
    if A[i] % 2 ==0:
      A[i] = A[i] / 2
      else:
        flag =True
        break
        
        if flag:
          break
          step +=1
          
print(step)

Submission status: Runtime Error

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

step = 0
while True:
  flag = False
  for i in range(N):
    if A[i] %2 == 0:
      A[i] = A[i]/2
      else:
        flag = True
        break
        
        if flag:
          break
          step +=1

print(step)

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
l=list(map(int,input().split()))
f=[l.count(i) for i in range(1,n+1)]
f.sort()
print(sum(f[0:n-k]))

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
l=list(map(int,input().split()))
f=[l.count(i) for i in range(0,n)]
f.sort()
print(sum(f[0:n-k]))

Submission status: Runtime Error

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