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:
a = int(input())
print(a.count(o))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

flag=0
count=0
ans=[]
for a in A:
  if a%2==0:
    count=a/2
    ans.append(count)
  else:
    flag=1
if flag==0:
  print(int(min(ans)))
else:
  print(0)

Submission status: Runtime Error

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

p=0
for i in A:
  if p==0:
    while i%2==1:
      p=p+1    
  else:
    ans=p
    while i%2==1:
      p=p+1
    if p>ans:
      ans=p
print(ans)

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split()))
x=0
for i in 1:
  s[i] = 1
  x+=1
print(x)

Submission status: Runtime Error

Solution code:
s=list(map(int,input().split()))
x=0
for s in 1:
  x+=1
print(x)

Submission status: Runtime Error

Solution code:
inp = str(input())
n = 0

if imp[0] == 1:
  n+=1
if imp[1] == 1:
  n+=1
if imp[2] == 1:
  n+=1

print(n)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
t = 0
def exist_odd(A):
  for i in A:
    if i % 2 == 1:
      break
    return 1
  else:
    return 0
while exist_odd(A) ==1:
  A = list(map(lambda x: x / 2, A))
  t = t+1
print(t)

Submission status: Runtime Error

Solution code:
# 自分の回答
n = int(input())
array = list(map(int, input().split()))
flg = 0
count = 0
while(flg == 0):
    j = 0
    for j in range(n):
        if(array[j] % 2 == 0):
            array[j] /= 2
            j += 1
            if(j == (n -1)):
                count += 1
        else:
            flg = 1
            break
print(count)

Submission status: Runtime Error

Solution code:
# 自分の回答
n = int(input())
array = list(map(int, input().split()))
flg = 0
count = 0
while(flg == 0):
    j = 0
    for j in range(n):
        if(array[j] % 2 == 0):
            j += 1
            array[j] /= 2
            if(j == (n -1)):
                count += 1
        else:
            flg = 1
            break
print(count)

Submission status: Runtime Error

Solution code:
s = list(input())

for i ==2:
   sum+=s[i]
print(sum)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

ct = 0
while(1) :
  count = 0
  for i in range(n):
    if a[i]%2 != 0:
      count+=1
  if count != 0:
    break
  else:
    a1 = [j/2 for j in a]
    a = a1
    ct += 1
  
print(ct)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#Shift only
N = int(input())
A = list(map(int,input().split()))
count = [0]*N
for a in range(N):
    count_local = 0
    while A[a]%2 == 0:
        A[a] = A[a]/2
        count_local += 1
        if count_local >= count[a]:
            count[a] = count_local

print(min(count))

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int,input().split()))
count = 0
for a in A:
    count_local = 0
    while a%2 == 0:
        a = a/2
        count_local += 1
        if count_local <= count:
            count = count_local

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
_ = input()
a = input()

a = a.split(" ")
b = []
d = 0
flag = True
for i in a:
    if int(i)%2 == 0:
        b.append(int(i))
    else:
        print(0)
        flag = False
        break
if flag == True:
    c = min(b)
    while c%2 == 0:
        c = c/2
        d += 1
    print(d)

Submission status: Runtime Error

Solution code:
_ = input()
a = input()

a = a.split(" ")
b = []
d = 0
flag = True
for i in a:
    if int(i)%2 == 0:
        b.append(int(i))
    else:
        print(0)
        flag = False
        break
c = min(b)
while c%2 == 0 and flag == True:
    c = c/2
    d += 1
print(d)

Submission status: Runtime Error

Solution code:
a = input()

count = 0

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

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

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

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
x = int(input())
a = list(map(int,input().split()))
count = 0
flag = True
while flag:
    count += 1
    for i in range(x):
        if a[i]%2 == 0:
            a[i] = a[i]/2
        
        else:
            flag = False
            break
print(count-1)

Submission status: Runtime Error

Solution code:
input()
#文字列を数字へ
A=list(map(int, input().split()))

count=0

#Aへの繰り返し処理
while all(i%2==0 for i in A):
        count+=1
        A= [i/2 for i in A]


print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
string s;
s = input();
i = s.find("1")
print(i)

Submission status: Runtime Error

Solution code:
n = int(input())
l = tuple(map(int, input().split()))
count = 0
while all(i % 2 == 0 for i in l):
    count += 1
    l = tuple(map(lambda x: x / 2, l))
print(count)

Submission status: Runtime Error

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

def even_check(A):
    cnt = 0
    for i in range(N):
        if A[i]%2 == 0:
            cnt += 1
    if cnt == N:
        return True

total_cnt = 0
while even_check(A):
    for i in range(N):
        A[i] = A[i]/2
    total_cnt += 1

print(total_cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(cnt)

Submission status: Runtime Error

Solution code:
sum = input()

if sum[0] == 1:
  cnt += 1:
endif

if sum[1] == 1:
  cnt += 1:
endif

if sum[2] == 1:
  cnt += 1:
endif

print(cnt)

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
count=0
while True:
  for i in A:
    if i%2 != 0:
      print(int(count))
      quit()
  
  A = list(map(lambda x: x/2, A))
  #print(A)
  count+=1
  #break
print(int(count))

Submission status: Runtime Error

Solution code:
def how_many_times_divisible(n):
	ans = 0
	while n % 2 == 0:
		n /= 2
		ans += 1
	return ans
 
N = int(input())
a = map(int, input().split())
ans = min(map(how_many_times_divisible, a))
 
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys

def half(n):
    return n/2

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

#for y in A:
#    if y%2!=0:
#        print(0)
#        exit()

while b==0:
    for x in A:
        if x%2!=0:
            b+=1
    if b!=0:
        break
    A=list(map(half,A))
    count+=1
    
print(count)

Submission status: Runtime Error

Solution code:
import sys

def half(n):
    return n/2

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

for y in A:
    if y%2!=0:
        print(0)
        sys.exit()

while b==0:
    for x in A:
        if x%2!=0:
            b+=1
    if b!=0:
        break
    A=list(map(half,A))
    count+=1
    
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=stdin.readline().rstrip())

x=a.count("1")
print("x")

Submission status: Runtime Error

Solution code:
a=int(stdin.readline().rstrip())

x=str(a).count("1")
print(x)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=stdin.readline().rstrip()
s=str(a)
x=s.count("1")
print(x)

Submission status: Runtime Error

Solution code:
a=stdin.readline()
s=str(a)
x=s.count("1")
print(x)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b, c =(int(x) for x in input().split())
print(str(a+b+c))

Submission status: Runtime Error

Solution code:
a, b, c =(int(x) for x in input().split())
count = 0
if a == 1:
  count++
if b == 1:
  count++
if c == 1:
  count++

print(str(count))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

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



if __name__ == '__main__':
    main()

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

counter = 0
end_judge = 0
while 1:
  
  for i in range(n):
    if A[i]%2 == 1 or A[i]==0:
      end_judge = 1
    else:
      A[i] = A[i] / 2    
  if end_judge == 1:
    break    
  counter += 1
  
print(counter)

Submission status: Runtime Error

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

counter = 0
end_judge = 0
while 1:
  
  for i in range(n):
    if A[i]%2 == 1:
      end_judge = 1
    else:
      A[i] = A[i] / 2    
  if end_judge == 1:
    break    
  counter += 1
  
print(counter)

Submission status: Runtime Error

Solution code:
n = int(input())
A = list(map(int,input().split()))
counter = 0
end_judge = 0
while 1:
  
  for i in range(n):
    if A[i]%2 == 1:
      end_judge = 1
    else:
      A[i] = A[i] % 2    
      
  counter += 1
  if end_judge == 1:
    break

Submission status: Runtime Error

Solution code:
n=input()
s=list(map(int,input().split()))
sp=0
for i in s:
    if i%2==0:
        sp+=1
        continue
    else:
        break
print(sp)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
def main():
    N, K = map(int, input().split())
    A = list(map(int, input().split()))
    B = set(A)
    L = [0 for i in range(N+1)]
    for i in A:
        L[i] += 1
    L.sort()
    if len(B) <= K:
        print('0')
    else:
        print(str(sum(L[0:N+1-K])))


if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
#! /Library/Frameworks/Python.framework/Versions/3.7/bin/python3
N, K = map(int, input().split())
A = list(map(int, input().split()))
L = [0] * len(set(A))
tmp = 0
for i in set(A):
    L[tmp] = A.count(i)
    tmp += 1
L.sort()
if len(set(A)) <= K:
    print('0')
else:
    print(str(sum(L[0:len(set(A))-K])))

Submission status: Runtime Error

Solution code:
N, K = map(int, input().split())
A = list(map(int, input().split()))
L = [0] * len(set(A))
tmp = 0
for i in set(A):
    L[tmp] = A.count(i)
    tmp += 1
L.sort()
if len(set(A)) <= K:
    print('0')
else:
    print(str(sum(L[0:len(set(A))-K])))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
loop = int(input())
kokuban=[int(x) for x in input().split()]
print(kokuban)

flag=False
result =0

while(flag==False) :
    for index,obj in enumerate(kokuban) :
        print(int(obj))
        if int(obj)%2 == 0:
            kokuban[index]= int(obj)//2
        else:
            flag=True
    if flag==False :
        result +=1

print(result)

Submission status: Runtime Error

Solution code:
N = int(input())
numbers = [x for x in map(int, input().split())]
count = 0
on = True
while on:
  val = [x % 2 == 0 for x in numbers]
  if False in val:
    print(count)
    break
  else:
    numbers = [x//2 for x in numbers]
    count += 1

Submission status: Runtime Error

Solution code:
s=np.array(list(map(int,input().split())))
print(np.count_nonzero(s==1))

Submission status: Runtime Error

Solution code:
s=np.array(map(int,input().split()))
print(np.count_nonzero(s==1))

Submission status: Runtime Error

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

n, k = map(int, input().split())
a_tuple = tuple(map(int, input().split()))
a_set = set(a_tuple)
count_list = []

if k >= len(a_set):
    print(0)
else:
    for i in a_set:
        count = a_tuple.count(i)
        count_list.append(count)
    count_list.sort()
    ans = sum(count_list[:len(a_set)-k])
    print(ans)

Submission status: Runtime Error

Solution code:
def two_power(num: int) -> int:
    count = 0

    while num % 2 == 0:
        try:
            num = num / 2
            count += 1
        except ValueError:
            pass
    return count


n = int(input())
li = (input().split(' '))

l = []
for i in range(0, n):
    l.append(int(li[i]))

ans_list = []
for i in range(0, n):
    ans_list.append(two_power(l[i]))

print(min(ans_list))

Submission status: Runtime Error

Solution code:
def two_power(num: int) -> int:
    count = 0

    while num % 2 == 0:
        try:
            num = num / 2
            count += 1
        except ValueError:
            pass
    return count


n = int(input())
li = (input().split(' '))

l = []
for i in range(0, n):
    l.append(int(li[i]))

ans_list = []
for i in range(0, n):
    ans_list.append(two_power(l[i]))

print(max(ans_list))

Submission status: Runtime Error

Solution code:
n,k=map(int,input().split())
a=list(map(int,input().split()))
d={}
for i in a:
    d[i]=d.get(i,0)+1
c=0
while len(d)>k:
    x=min(d, key=d.get)
    c+=d[x]
    del d[x]
print(c)

Submission status: Runtime Error

Solution code:
a = input()

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

ball = 0

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

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

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

Submission status: Runtime Error

Solution code:
a = input()

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

ball = 0

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

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
AN=list(map(int,input().split()[:N]))

ret=0
flg=True
while flg:
    for i in range(N):
        if AN[i]%2!=0:
            flg=False
            break
        AN[i]//=2

    if flg:
        ret+=1

print(ret)

Submission status: Runtime Error

Solution code:
N = int(input())
A=list(map(int,input().split()[:N]))
num = 0
flg = True
while flg:
  for i in range(N):

    if A[i] %2 != 0:
      flg = False
      break
    else:
      A[i] //=  2
	
  if flg:
    num += 1

print(num)

Submission status: Runtime Error

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

num = 0
flg = True
while flg:
  for i in range(N):

    if A[i] %2 != 0:
      flg = False
      break
    else:
      A[i] //=  2
	
  if flg:
    num += 1

print(num)

Submission status: Runtime Error

Solution code:
num = 0
flg = True
while flg:
  for i in range(N):

    if A[i] %2 != 0:
      flg = False
      break
    else:
      A[i] //=  2
	
  if flg:
    num += 1

print(num)

Submission status: Runtime Error

Solution code:

num = 0
flg = True
while flg:
  for i in range(N):

    if A[i] %2 != 0:
      flg = False
      break
    else:
      A[i] //=  2
	
  if flg:
    i += 1

print(num)

Submission status: Runtime Error

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

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

print(i)

Submission status: Runtime Error

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

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

print(i)

Submission status: Runtime Error

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

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

print(i)

Submission status: Runtime Error

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

i = 0
flg = True
while flg:
	for i in N:
		if A[i] %2 != 0:
          flg = False
          break
        else:
          A[i] = A[i] / 2
	if flg
    	i += 1

print(i)

Submission status: Runtime Error

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

max = 0
i = 0
for a in A:
  	if a%2 != 0:
    	i = 0
    	continue
  	else:
    	a = a / 2
    	i = i + 1
    	if i > max:
      		max = i
print(max)

Submission status: Runtime Error

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

max = 0
i = 0
for a in A:
  	if a%2 != 0:
    	i = 0
    	break
  	else:
    	a = a / 2
    	i = i + 1
    	if i > max:
      		max = i
print(max)

Submission status: Runtime Error

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

for a in A:
  if a%2 != 0:
    print(0)


max = 0
for a in A:
  if a%2 != 0:
    i = 0
    break
  else:
    a = a / 2
    i = i + 1
    if i > max:
      max = i
print(max)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

print(cnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n, k = map(int,input().split())
a = list(map(int,input().split()))
d = {}
count = 0
for i in a:
  if i not in d.keys():
    d[i] = 1
  else:
    d[i] += 1
d = sorted(d.values())
for i, j in enumerate(d):
  if len(d) > k:
    count += j
    del d[i]
  else:
    break
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
line = input()
count  = 0

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

return count

Submission status: Runtime Error

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

return cnt

Submission status: Runtime Error

Solution code:
line = input()
count = 0

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

return line

Submission status: Runtime Error

Solution code:
N = int(input())
input = input().split()

marker = True
count = 0

while(marker):
    for i in range(N):
        num = int(input[i])
        if num%2==1:
            marker = False
            count -= 1
            break;
        else:  
            input[i] = num/2 
    count += 1
print(count)

Submission status: Runtime Error

Solution code:
in = int(raw_input())
a = in // 100
b = (in - a * 100) // 10
c = in % 10

cnt = 0
if a == 1:
  cnt += 1
elif b == 1:
  cnt += 1
elif c == 1:
  cnt += 1
  
print cnt

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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())
A = list(map(int, input().split()))

ret = 0
flag = True
while(flag):
  for i in range(3):
    if(A[i] % 2 != 0):
      flag = False
    else:
      A[i] /= 2
  if(flag):
    ret += 1  
print(ret)

Submission status: Runtime Error

Solution code:
l=[map(int,input().split(''))]
c=0
for i in l:
  if i=='1':
    c+=1
print(c)

Submission status: Runtime Error

Solution code:
import math
N = int(input())
a = list(map(int, input().split()))
number = 0
sign = True
while sign:
  for i in range(N):
    if a[i] % 2 != 0:
      sign = False
      print(number)
      break
    else:
      a[i] /= 2
  number += 1

Submission status: Runtime Error

Solution code:
iter_num = input()
variables = input()

raw_variables = variables.split(' ')
variables = list()

for raw_variable in raw_variables:
    variables.append(int(raw_variable))


def calc(variable):
    process_count = 0
    while (variable % 2 == 0):
        process_count += 1
        variable = variable / 2
    return process_count


min_count = None

for variable in variables:
    process_count = calc(variable)
    if min_count is None:
        min_count = process_count
    if process_count < min_count:
        min_count = process_count

print(min_count)

Submission status: Runtime Error

Solution code:
s = map(input().split())
print(sum(s))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def divide_count(n):
    cnt = 0
    while n % 2 == 0:
        n /= 2
        cnt += 1
    return cnt

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

Submission status: Runtime Error

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

if '1' * 1 in a, b, c:
  print('1')
elif '1' * 2 in a, b, c:
  print('2')
else:
  print('3')

Submission status: Runtime Error

Solution code:
a,b,c = map(int, input().split())
A = 0
B = 0
C = 0

if a == 1:
  	A = 1

if b == 1:
  	B = 1

if c == 1:
  	C = 1

print(A+B+C)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(a+b+c)

Submission status: Runtime Error

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

print(a+b+c)

Submission status: Runtime Error

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

print(a+b+c)

Submission status: Runtime Error

Solution code:
N,K = map(int, input().split())
A = [int(i) for i in input().split()]

l=[]
for i in range(N+1):
  l.append(A.count(i))

ls = sorted(l,reverse=True)

j= K
ans = 0
while ls[j] != 0:
  ans += ls[j]

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

num = []
cnt = []

for a in A:
    if a not in num:
        num.append(a)
        cnt.append(1)
    else:
        cnt[-1] += 1
cnt.sort()
#print(num,cnt)

res = 0
M = len(cnt)
if M <= K:
    res = 0
else:
    for i in range(M-K):
        res += cnt[i]
print(res)

Submission status: Runtime Error

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

num = []
cnt = []

for a in A:
    if a not in num:
        num.append(a)
        cnt.append(1)
    else:
        cnt[-1] += 1
cnt.sort()
#print(num,cnt)

res = 0
M = len(cnt)
if M <= K:
    res = 0
else:
    for i in range(M-K):
        res += cnt[i]
print(res)

Submission status: Runtime Error

Solution code:
N=int(input())
L=list(map(int,input().split()))
counter=0
t=0
for p in range (30):
  t=0
  for i in range(N):
    if L[i]%2==0:
      t+=1
  if t==N:
    for i in range(N):
      L[i]=int(L[i]/2)
    counter+=1
print(counter)

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vector<int>>;
using vvl = vector<vector<ll>>;

int main() {
  cin.tie(nullptr);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  int ans = 0;
  for (char c : s) if (c == '1') ans++;
  cout << ans << endl;
  return 0;
}

Submission status: Runtime Error

Solution code:
N = int(input())
count = 0
COUNT = 0
A = [int(i) for i in input().split()]
while 1:
  for i in range(N):
    if A[i]%2==0:
      A[i]/=2
      count+=1
  if count == N:
    COUNT+=1
    count = 0
  else:
    break
print(COUNT)

Submission status: Runtime Error

Solution code:
N = int(input())
count = 0
COUNT = 0
A = [int(i) for i in input().split()]
while 1:
  for i in range(N):
    if A[i]%2==0:
      A[i]/=2
      count+=1
  if count == N:
    COUNT+=1
  else:
    break
print(COUNT)

Submission status: Runtime Error

Solution code:
N = input()
count = 0
COUNT = 0
A = input().split()
while:
  for i in range(N):
    if A[i]%2==0:
      A[i]/=2
      count++
  if count == N:
    COUNT++
  else:
    break
print(COUNT)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N = input()
A = list(map(int,input().split()))
count= 0
while(true):
    exist_odd = False
    for i in range(N):
        if(A[i]%2 != 0):
            exist_odd = True
    if(exist_odd == True):
        break
    for i in range(N):
        A[i] /= 2
    count += 1
print(count)