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

Submission status: Runtime Error

Solution code:
#1,2,3の番号がついた3マスに，それぞれ"0"か"1"がある．"1"のマスはいくつあるか

s = input()
a = [int(c) for c in s]
print (a[1]+a[2]+a[3])

Submission status: Runtime Error

Solution code:
#1,2,3の番号がついた3マスに，それぞれ"0"か"1"がある．"1"のマスはいくつあるか

res = sum(list(map(int(s))))
print (res)

Submission status: Runtime Error

Solution code:
#1,2,3の番号がついた3マスに，それぞれ"0"か"1"がある．"1"のマスはいくつあるか

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

res = (s1 + s2 + s3)
print (res)

Submission status: Runtime Error

Solution code:
#1,2,3の番号がついた3マスに，それぞれ"0"か"1"がある．"1"のマスはいくつあるか

s1,s2,s3 = a = map(int,input().split())

res = (s1+s2+s3)
print (res)

Submission status: Runtime Error

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

return count

Submission status: Runtime Error

Solution code:
print(len(filter(lambda s: s == '1', list(input()))))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

s1=x//100
s2=x//10%10
s3=x%10

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()))
cnt = 0
flag = True

while flag:
    ans = []
    for i in a:
        if i%2 == 1:
            flag = False
        else:
            ans.append(i/2)
    if len(ans) == n:
        cnt += 1
        a = ans

print(cnt)

Submission status: Runtime Error

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

while flag:
    ans = []
    for i in a:
        if i%2 == 1:
            flag = False
            break
        else:
            ans.append(i/2)
    if len(ans) == n:
        cnt += 1
        a = ans

print(cnt)

Submission status: Runtime Error

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

while flag == 1:
    b = list(map(lambda x: x % 2, a))
    if b.count(1) == 0:
        a = list(map(lambda x: x / 2, a))
        count += 1
    else:
        flag = 0

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s, t, u = map(int, input().split())
x = 0
if s % 1 == 1:
  x = x + 1
if t % 1 == 1:
  x = x + 1
if u % 1 == 1:
  x = x + 1
 
print(x)

Submission status: Runtime Error

Solution code:
s = input()
x = 0

t = s % 100
u = s % 10
v = s % 1

if t == 1:
  x++
if u == 1:
  x++
if v == 1:
  x++

print(x)

Submission status: Runtime Error

Solution code:
num = input()
evens = [int(x) for x  in input().split()]

itr = 0
flg = True
while flg:
  evens = list(map(lambda x: (x/2), evens))
  is_evens = list(map(lambda x: x.is_integer(), evens))
  if not all(is_evens):
    flg = False
    break
  itr+=1
  print(evens)
print(itr)

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:
n = int(input())
a = list(map(int, input().split()))
l = []

for i in a:
	s = 0
	while i % 2 == 0:
		i = i/2
		s += 1
	l.append(s)

print(min(l))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s=list(str,input())
count = 0
for i in range(2):
    if s[i] == 1 :
        count +=1    
break
print(count())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s1,s2,s3=map(str,input().split())
# c=str(input())
a=s1+s2+s3
b=0

for i in a:
    b=b+int(i)

print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

flg_break = True

while flg_break:
    count = 0
    num_tmp_list = []
    for n in num_list:
        print(n)
        if n % 2 != 0:
            flg_break = False
            break
        else:
            num_tmp = n / 2
            num_tmp_list.append(num_tmp)
    num_list = num_tmp_list
    count+=1

print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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(raw_input())
a = map(int, raw_input().split())
ans = min(map(how_many_times_divisible, a))

print ans

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(raw_input())
a = map(int, raw_input().split())
ans = min(map(how_many_times_divisible, a))

print ans

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    count = 0
    while True:
        a[i] *= 1/2
        count++
        if a[i]%2==1 || a[i] = 0:
            a[i] = count
            break

print(min(a))

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    while True:
        a[i] *= 1/2
        if a[i]%2!=0 || a[i] = 0:
            break

print(min(a))

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    while True:
        a[i] *= 1/2
        if a[i]%2!=0 && a[i] < 0:
            break

print(min(a))

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    while True:
        a[i] *= 1/2
        if a[i]%2!=0 && a[i] > 0:
            break

print(min(a))

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    while True:
        a[i] = a[i]/2
        if a[i]%2!=0:
            break

print(min(a))

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
for i in range(n):
    while True:
        a[i] = a[i]/2
        if a[i]%2==1:
            break

print(min(a))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n=input()
mx=0
for a in map(int,input().split()):
    i=0
    if a%2!=0: break
    while a%2==0:
        i+=1
        mx=i
        a/=2
    if mx<i:
        mx=i

print(mx)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = str(input())

print(s.count(1))

Submission status: Runtime Error

Solution code:
n = int(input())
l = list(map(int ,input().split(" ")))
count = 0
while True:
  for i in range(n):
    if l[i]%2 == 0:
      l[i] = l[i]//2
    else:
      print(count)
      exit()
  count += 1

Submission status: Runtime Error

Solution code:
n = int(input())
l = list(map(int ,input().split(" ")))
count = 0
while True:
	for i in range(n):
		if l[i]%2 == 0:
			l[i] = l[i]//2
		else:
			print(count)
			exit()
	count += 1

Submission status: Runtime Error

Solution code:
n = input()
l = list(map(int ,input().split(" ")))
 
count = 0
 
while True:
	for i in range(n):
		if l[i]%2 == 0:
			l[i] = l[i]//2
		else:
			print(count)
			exit()
	count += 1

Submission status: Runtime Error

Solution code:
n = int(input())
l=list(map(int ,input().split(" ")))
count=0
while True:
    for i in range(n):
        if l[i]%2==0:
            l[i]=l[i]//2
        else:
            print(count)
            exit()
    count+=1

Submission status: Runtime Error

Solution code:
n = input()
l = list(map(int,input().split(" ")))
 
count = 0
 
while True:
  for i in range(n):
    if l[i]%2 == 0:
      l[i] = l[i]//2
    else:
      print(count)
      exit()
  count += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
ans = 10**9
N = int(input())
A = list(map(int,input().split()))
for i in A:
    p = 0
    while i % 2 == 0:
        i //= 2
        p += 1
    if p < ans:
        ans = p
print(ans)

Submission status: Runtime Error

Solution code:
#input
N=int(input())
An=list(int(i) for i in input().split())
x=0
point=0
flag=True
while(flag):
  x=0
  for x in range(N):
    if An[x]%2==0:
      An[x]/=2
    else:
      flag=False
      break
    point+=1 
print(point)

Submission status: Runtime Error

Solution code:
li = list(input())
counter = int(li[0) + int(li[1]) + int(li[2])
print(counter)

Submission status: Runtime Error

Solution code:
li = list(input())
counter = 0
for i in li:
    if li[i] == "1":
        counter += 1
print(counter)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

ans = 0
t=0

while True:
    for i in range(n):  # 0 1 2 ... n-1
        if a[i] %2 ==0:
            a[i] = a[i] / 2
        else:
            t = 1
    if t != 1:
        ans += 1
    else:
        break

print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

#print(N, K, A)
A2 = [0] * N
for i in range(len(A)):
    A2[A[i]] += 1

A2.sort(reverse = True)
#print(A2)
count = 0
for i in range(K):
    count += A2[i]
print(N - count)

Submission status: Runtime Error

Solution code:
import numpy as np


def main()->None:
    N, K = map(int, input().split())
    A = [map(int, input().split())]


    if len(A) > K:
        set_A = set(A)
        #print(set_A)
        count = np.empty(len(set_A), dtype=int)
        for i, s_a in enumerate(set_A):
            count[i] = A.count(s_a)
        sorted_count = np.sort(count)
        #print(sorted_count)
        reduce_num = len(set_A) - K
        sum_count = 0
        counter = 0
        for c in sorted_count:
            if counter == reduce_num :
                break
            sum_count += c
            counter += 1

        print(sum_count)
    else:
        print(0)

if __name__ == "__main__":
    main()

Submission status: Runtime Error

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

n = int(input())
line = map(int , input().split())
answer = min(map(how_many , line))
             
print(answer)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = list(map(int, input().split()))
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: Runtime Error

Solution code:
s1, s2, s3 = input().split()
a = str(s1)
b = str(s2)
c = str(s3)
count = 0
for i in (a, b, c):
  if a = 1:
    count += 1
  if b = 1:
    count += 1
  if c = 1:
    count += 1

Submission status: Runtime Error

Solution code:
import itertools

cnt_500 = int(input())
cnt_100 = int(input())
cnt_50 = int(input())
target_amount = int(input())

cnt_500_arr = [i for i in range(cnt_500+1)]
cnt_100_arr = [i for i in range(cnt_100+1)]
cnt_50_arr = [i for i in range(cnt_50+1)]

coin_combinations = list(itertools.product(cnt_500_arr, cnt_100_arr, cnt_50_arr))

result_count = 0
for cnt_500, cnt_100, cnt_50 in coin_combinations:
	amount = cnt_500 * 500 + cnt_100 * 100 + cnt_50 * 50
	if amount == target_amount:
		result_count += 1
print(result_count)

Submission status: Runtime Error

Solution code:
num = int(input())
x = input().split()
count = 0
TF = True
while TF: 
    
    for i in range(0,num):
        number = int(x[i])
        if(number%2==0):
            x[i] = number/2
            TF = True
        else:
            TF =False
    if TF:
        count += 1
print(count)

Submission status: Runtime Error

Solution code:
num = int(input())
x = input().split()
count = 0
TF = True
while TF: 
    count += 1
    for i in range(0,num):
        number = int(x[i])
        if(number%2==0):
            number = number/2
            x[i] =  number
            TF = True
        else:
            TF =False
print(count)

Submission status: Runtime Error

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

if int(n/100) == 1:
    s += 1
if n%100 => 10:
    s += 1
if n%10 == 1:
    s += 1

print(s)

Submission status: Runtime Error

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

if int(n/100) == 1:
    s ++
if n%100 => 10:
    s ++
if n%10 == 1:
    s ++

print(s)

Submission status: Runtime Error

Solution code:

N = int(input())
s = list(map(int, input().split()))
a=[0]*N#N個の要素の配列
total=0

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

while 1==1:
 b=0
 for i in range(N):
  if a[i]%2==0:
        a[i]=a[i]/2
        b+=1
 if b==N:
  total+=1
 else: 
  break

print(total)

Submission status: Runtime Error

Solution code:
N = int(input())
s = list(map(int, input().split()))
a=[0]*N#N個の要素の配列
b=0
total=0

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

while 1==1:
 for i in range(N):
  if a[i]%2==0:
        a[i]=a[i]/2
        b+=1
 if b==N:
  total+=1
 else: 
  break

print(total)

Submission status: Runtime Error

Solution code:

s=list(input().split())

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

if b==1:
        d+=1

if c==1:
        d+=1

 
print(d)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
data = np.array([int(i) for i in input().split()])
cout = 0
while 1:
    index = np.where(data%2 == 0)
    data_even = data[index]
    # print(data_even)
    # print(len(data_even) == len(data))
    if len(data_even) == len(data):
        cout += 1
        data = data_even / 2
    else:
        break


print(cout)

Submission status: Runtime Error

Solution code:
S = input()

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

return cout

Submission status: Runtime Error

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

print(s)

Submission status: Runtime Error

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

print(s)

Submission status: Runtime Error

Solution code:
N = int(input())
arr =  [int(i) for i in input().split()] 

count = 0
while(True):
    for i in range(N):
        if arr[i] % 2 == 0:
            arr[i] = arr[i] / 2
            if i == 2:
                count += 1
        else:
            break
    else:
        continue
    break

Submission status: Runtime Error

Solution code:
N = int(input())
arr =  [int(i) for i in input().split()] 

count = 0
while(True):
    for i in range(N):
        if arr[i] % 2 == 0:
            arr[i] = arr[i] / 2
            if i == 2:
                count += 1
        else:
            break
    else:
        continue
    break
        
        

print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
arr =  [int(i) for i in input().split()] 

count = 0
while(True):
    for i in range(N):
        if arr[i] % 2 == 0:
            arr[i] = arr[i] / 2
            if i == 2:
                count += 1
        else:
            exit()

Submission status: Runtime Error

Solution code:
counter = 0
for s[i] in range(2):
  if s[i] == 1:
    counter += 1
  else:
    pass
print(counter)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
def count():
	s1 = int(input())
	s2 = int(input())
	s3 = int(input())
	print(s1+s2+s3)
count()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

print(s1+s2+s3)

Submission status: Runtime Error

Solution code:
s=int(input())
s=str(s)
a=int(s[0]);b=int(s[1]);c=int(s[2])
sum=a+b+c

if sum == 0:
  print(0)
elif sum == 1:
  print(1)
elif sum == 2:
  print(2)
else:
  print(3)

Submission status: Runtime Error

Solution code:
s=int(input())
s=str(s)
a=int(s[0]);b=int(s[1]);c=int(s[2])
sum=a+b+c

if sum == 0:
  print('0')
elif sum == 1:
  print('1')
elif sum == 2:
  print('2')
else:
  print('3')

Submission status: Runtime Error

Solution code:
N=int(input())
A=list(map(int,input().split()))
 
flg=1
count=0
while True:
    for i in A: #全て偶数か確かめる
        if i%2==1:
            flg=0
            break

    if flg==1:
        for i in A:
            i=i//2
        count+=1
    else:
        break
print(count)

Submission status: Runtime Error

Solution code:
string = list(int(input()))

if string[0] + string[1] + string[2] == 0:
  print(0)
elif string[0] + string[1] + string[2] == 1:
  print(1)
else:
  print(2)

Submission status: Runtime Error

Solution code:
def main():
  N = int(input())
  li = list(map(int, input().split()))

  num_of_operation = 0
  
  while True:
    for num in li:
      if num % 2 == 1:
        break
    
    for i in range(N):
      li[i] //= 2
    num_of_operation += 1
  
  print(num_of_operation)

if __name__ == '__main__':
  main()

Submission status: Runtime Error

Solution code:

x = input()

counter = 0

a = [counter +=1 for i in x if i == '1']

print(counter)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
print(list(str(intput())).count("1"))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

def iseven(i,num_list):
  count = 0
  for num in num_list:
    if num % 2 != 0:
      return False
  return True

num_divided = 0

while iseven(n,a) :
  a = list(map(lambda x: x / 2, a ))
  num_divided += 1

print(num_divided)

Submission status: Runtime Error

Solution code:

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

a = 0

if s1 =1 or s2 =1 or s3 = 1:
  a += 1
else:
  a += 0

print(a)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num = int(raw_input())
list = map(int, raw_input().split())

i = 0
while 1 not in map(lambda x: x % 2, list):
 list = map(lambda x: x >> 1, list)
 i += 1

print i

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = list(map(int, input().split(//)))
b = 0

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

Submission status: Runtime Error

Solution code:
n = int(input())
a = map(int,input().Split())
count = 0;
while true:
	for i in a :
  		if i%2!=0:
          break
        else :
          a[i] = a%i
    count++
    
print(str(count))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
N=int(input())
S=list(map(int,input().split()))
shingi=True
total=0
while shingi==True:
    count=0
    for i in S:
        if i%2==0:
            count+=1
        else:
            shingi=False
    if count==len(S):
        total+=1
    S=list(map(lambda x:x/2,S))
print(total)

Submission status: Runtime Error

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

count = 0
flag = 0
 
#loop
while(1):
  for i in range(N):
    
    if A[i] %2 == 1:
      flag = 1
    else:
      temp = A[i]/2
      A[i] = temp;
  
  #judge
  if flag == 1:
    break
  else:
    count +=1
 
print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
nums = list(map(int, input().split(" ")))
res = 0
even = all(num % 2 = 0 for num in nums)
while even:
	nums = [num//2 for num in nums] 
	res =+ 1
    even = all(num % 2 == 0 for num in nums)
print(res)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# https://atcoder.jp/contests/abc081/tasks/abc081_b

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


# リスト内の要素に奇数が含まれているかどうかを判断する
# 戻り値：Boolean
def judge_hasOdd(A):
    hasOdd = False
    for a in A:
        if a % 2 == 0:
            continue
        else:
            hasOdd = True
            break
    return hasOdd


# リスト内の全要素を２で割る
# リスト内に奇数が現れるまで上記操作を繰り返す
count = 0
while True:
    if judge_hasOdd(A) == False:
        A = list(map(lambda x: x/2, A))
        count += 1
    else:
        break

print(count)

Submission status: Runtime Error

Solution code:
def main():
    n = int(input())
    a_list = list(map(int, input().split()))

    temp_list = []
    count = 0
    is_ongoing = True
    while is_ongoing:
        for a in a_list:
            if a % 2 == 0:
                temp_list.append(a/2)
            else:
                is_ongoing = False
                print(count)
                break
        else:
            count += 1
        a_list = temp_list[:]


if __name__ == '__main__':
    main()

Submission status: Runtime Error

Solution code:
import numpy as np

def how_many_times_divisibles(j):
	counter=0
	while j%2==0:
		j/=2
		counter+=1
	return counter

n=int(input())
a=map(int,input().split())
ans=min(map(how_many_times_divisibles,a))
print(ans)

Submission status: Runtime Error

Solution code:
#include<iostream>
using namespace std;

int main()
{
    char str[3];
    cin >> str;
    int cnt = 0;
    for (int i = 0; i < 3; i++){
        if (str[i] == '1') cnt += 1;
    }
    cout << cnt << endl;
    return 0;
}

Submission status: Runtime Error

Solution code:
s1, s2, s3 = input().split()
print(s1,s2,s3.pop = 1)

Submission status: Runtime Error

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

print(counter)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

S=[s1,s2,s3]
S.count(1)

Submission status: Runtime Error

Solution code:
s=int(input())

if s[0] == 1:
    print(a)
elif s[1] == 1:
    print(a)
elif s[2] == 1:
    print(a)
else:
    print(b)
print(count(a))

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
n = input()
s = [int(x) for x in input().split(' ')]
count = 0

while sum(map(lambda x: x%2, s)) == 0:
  s =list(map(lambda x: x/2, s))
  count+=1
  
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
t = input().replace(' ','')
if t % 4 == 0:
    print('YES')
else:
    print('NO')

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = int(input)
for row in a:
    b += row 
print(b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
flg = True
break_flg = False
total = 0
while True:
  for i, b in enumerate(a):
    if b%2 == 0:
      a[i] = b/2
    else:
      break_flg = True
      break
  if break_flg :
    break
  else:
    total += 1
print(total)

Submission status: Runtime Error

Solution code:
import numpy as np

N = int(input())
A = np.array(list(map(int, input().split())))
cnt = 0

def divide_by_2(array):
  rest = array % 2
  global cnt
  if np.all(rest == 0):
    cnt += 1
    divide_by_2(array / 2)
    
divide_by_2(A)
print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split()))
# n = 3
# a = [10, 11, 12]
ans =0
product =1
for i in a:
    product = product *i
while product%2 ==0:
        product = product/2
        ans = ans + 1
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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