Problem:


Score : 200 points

Problem Statement

There are N positive integers written on a blackboard: A_1, ..., A_N.

Snuke can perform the following operation when all integers on the blackboard are even:

Replace each integer X on the blackboard by X divided by 2.

Find the maximum possible number of operations that Snuke can perform.

Constraints

1 \leq N \leq 200

1 \leq A_i \leq 10^9

Input

Input is given from Standard Input in the following format:

N
A_1 A_2 ... A_N

Output

Print the maximum possible number of operations that Snuke can perform.

Sample Input 1

3
8 12 40

Sample Output 1

2

Initially, [8, 12, 40] are written on the blackboard.
Since all those integers are even, Snuke can perform the operation.

After the operation is performed once, [4, 6, 20] are written on the blackboard.
Since all those integers are again even, he can perform the operation.

After the operation is performed twice, [2, 3, 10] are written on the blackboard.
Now, there is an odd number 3 on the blackboard, so he cannot perform the operation any more.

Thus, Snuke can perform the operation at most twice.

Sample Input 2

4
5 6 8 10

Sample Output 2

0

Since there is an odd number 5 on the blackboard already in the beginning, Snuke cannot perform the operation at all.

Sample Input 3

6
382253568 723152896 37802240 379425024 404894720 471526144

Sample Output 3

8



Sample input:
3
8 12 40


Sample output:
2

Submission status: Runtime Error

Solution code:
n = int(input())
st = map(int, input().split())
flag = True
count = 0

def check(st,count):
    new_list = []
	for i in len(st):
      if i % 2 == 0:
        new_list.append(i)
      else:
        flag = True
        break
    if flag:
      print(count)
      return
    else:
      count += 1
      check(new_list, count)

Submission status: Runtime Error

Solution code:
n = 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:
n = 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 = 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
   
print(result-1)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input()
num_list = list(map(int, input().split()))
count = -1
while flg_break:
    count+=1
    num_tmp_list = []
    for n in num_list:
        if n % 2 != 0:
            flg_break = False
            break
        else:
            num_tmp = n / 2
            num_tmp_list.append(num_tmp)
    num_list = num_tmp_list
print(count)

Submission status: Runtime Error

Solution code:
def div_count(a):
  i= 0
  while a%2 == 0:
    a = a/2
    i+=1
  return i
N = int(input())
list = int(input().split())
count=[]
for u in range(N):
  count.append(div_count(list[u]))
print(max(count))

Submission status: Runtime Error

Solution code:
N = input()
list = input.split()
i = 0
def div_list(your_list=list):
     for v in range(N):
       if list[v] % 2 == 0:
          list_a[v] = list[v] / 2
          if v== N-1:
             i+= 1
             div_list(list_a)
      
       else:
            break
      return i
print(div_list())

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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]//2
    else:
      print(count)
      exit()
  count += 1

Submission status: Runtime Error

Solution code:
N = int(input())
A = list(map(int, input().split()))
ans = 0
while 1:
  if A.all(0): break
  for i in A: i //= 2
print(ans)

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

count = 0

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
input_number = int(input())
input_box = []
error = False
counter = 0

for i in range(input_number):
    input_number2 = int(input())
    input_box.append(input_number2)

while True:
    for i in range(input_number):
        if int(input_box[i]) % 2 != 0:
            error = True
    
    if error == True:
        break

    for i in range(input_number):
        input_box[i] /= 2
    
    counter += 1

print(counter)

Submission status: Runtime Error

Solution code:
input_number = int(input())
input_box = []
error = False
counter = 0

for i in range(input_number):
    input_number2 = int(input())
    input_box.append(input_number2)

print(input_box)

while True:
    for i in range(input_number):
        if int(input_box[i]) % 2 != 0:
            error = True
    
    if error == True:
        break

    for i in range(input_number):
        input_box[i] /= 2
    
    counter += 1

print(counter)

Submission status: Runtime Error

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

import math
from functools import reduce
def gcd(*numbers):
    return reduce(math.gcd, numbers)

def gcd_list(numbers):
    return reduce(math.gcd, numbers)

count = gcd_list(a)
ans = 0
while count%2 == 0:
    ans += 1
    count /= 2
    
print(ans)

Submission status: Runtime Error

Solution code:
n = input() # データの個数
a = input().split() #リストに文字列として格納
t = 0

while True:
  for i in len(n):
    if int(a(i-1)) % 2 == 0:
      a(i-1) = int(a(i-1)/2)
      if i ==n:
        t += 1
      else:
        pass
    else:
      break

print(t)

Submission status: Runtime Error

Solution code:
n = input() # データの個数
a = list(map(int, input().split()))
t = 0

while True:
  for i in len(n):
    if a(i-1) % 2 == 0:
      a(i-1) == a(i-1)/2
      if i ==n:
        t += 1
      else:
        pass
    else:
      break

print(t)

Submission status: Runtime Error

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

ans = 0
for n in range(N+1):
    temp = n
    sum = 0
    while (temp>=1):
            sum += temp%10
            temp = int(temp/10)

    if A <= sum <= B:
        ans += n

print(ans)

Submission status: Runtime Error

Solution code:
dbflag=1
def debug(*args):
	if dbflag: print(*args)

result = 0

N =  input() 
N=int(N)

A =  input() .split()

flag= 1

while flag:
	for i in A.length:
		if A[i] %2 == 0:
			A[i] = A[i] //2
		else:
			flag = 0
			break
		
	if flag:
		result += 1

print(result)

Submission status: Runtime Error

Solution code:
dbflag=0
def debug(*args):
  if dbflag: print(*args)

result = 0

N =  input() 
N=int(N)

#A =  map(int,input() .split())
A = [int(i) for i in input().split(' ')]

flag= 1

while flag:
	for i in range(len(A)):
		debug(i, A[i])
		if A[i] %2 == 0:
			A[i] = A[i] //2
		else:
			flag = 0
			break
		
	if flag:
		result += 1

print(result

Submission status: Runtime Error

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

import numpy
import scipy

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

c = 0
while True:
    for i, a in enumerate(A):
        if a%2 == 0:
            A[i] = A[i]/2
        else:
            break;
    c += 1
print(c)

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

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
k=True
while k:
  j=0
   for i in a:
    if i % 2 != 0:
      k = False
      break
    a[j]=a[j]/2
    j=j+1
   if k==True:
    c=c+1
  
  
  
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
k=True
while k:
  j=0
   for i in a:
    if i%2!=0:
      k = False
      break
    a[j]=a[j]/2
    j=j+1
  
   if k ==True:
    c=c+1
  
  
  
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
k=True
while k:
  j=0
   for i in a:
    if i%2!=0:
      k = False
      break
    a[j]=a[j]/2
    j=j+1
  if k ==True:
    c=c+1
  
  
  
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
k=True
while k:
  j=0
   for i in a:
    if i%2!=0:
      k = False
      break
    a[j]=a[j]/2
    j=j+1
  if k ==Treue:
    c=c+1
  
  
  
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
while True:
   for i in a:
    if i%2!=0:
      break
  c=c+1
  j=0
  while j<N:
    a[j]=a[j]/2
    j=j+1
    
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
while True:
   for i in a:
    if i%2!=0:
      break
    
  c=c+1

  j=0
  while j<N:
    a[j]=a[j]/2
    j=j+1
    
print(c)

Submission status: Runtime Error

Solution code:
N=int(input())
a = [int(i) for i in input().split()] 
c=0
while 1:
   for i in a:
    if i%2!=0:
      break
    
  c=c+1

  j=0
  while j<N:
    a[j]=a[j]/2
    j=j+1
    
print(c)

Submission status: Runtime Error

Solution code:
N = int(input())
arrray = list(map(int,input().split()))
fleg = True
count = 0

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

print(count)

Submission status: Runtime Error

Solution code:
n = int(input())
A = [0]*n
for i in range(n):
    A[i]=int(input())
count = 0
f = True
while(True):
    flag = True
    for i in range(n):
        if A[i]%2 !=0:
            flag=False
    if flag == False:
        break
    for i in range(n):
        if A[i]%2 == 0:
            A[i]/=2
    count+=1
print(count)

Submission status: Runtime Error

Solution code:

N = int(input())

numbers = list(map(int, input()))
counter = 0

while all(number % 2 == 0 for number in numbers):
    numbers = [number / 2 for number in numbers]
    counter += 1

print(counter)

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 xrange(N):
      li[i] /= 2
    num_of_operation += 1
  
  print(num_of_operation)

if __name__ == '__main__':
  main()

Submission status: Runtime Error

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

cnt = 0
while True:
  if 1 in (li % 2):
    break
  else:
    cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
def f():
    _ = int(input())
    nums = np.array(list(map(int, input().split())))
    # nums = [int(x) for x in input().split()]
    c = 0
    while True:
        if any(nums % 2 == 1):
            break
        c += 1
        nums = nums / 2
    print(c)


f()

Submission status: Runtime Error

Solution code:
def f():
    _ = int(input())
    nums = np.array(list(map(int, input().split())))
    # nums = [int(x) for x in input().split()]
    c = 0
    while True:
        if any(nums % 2 == 1):
            break
        c += 1
        nums = nums / 2
    print(c)


f()

Submission status: Runtime Error

Solution code:

a = input()
b = input()
count = int(a)

num = map(int, b.split())
division = True
result = 0
while division:
    div = 0
    for i in range(count):
        if num[i]%2 == 0:
            div += 1
    if div == count:
        for j in range(count):
            num.append(num.pop(0)/2)
        result += 1
    else:
        division = False

print(result)

Submission status: Runtime Error

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

num = map(int, b.split())
division = True
result = 0
while division:
    div = 0
    for i in range(count):
        if num[i]%2 == 0:
            div += 1
    if div == count:
        for j in range(count):
            num.append(num.pop(0)/2)
        result += 1
    else:
        division = False

print(result)

Submission status: Runtime Error

Solution code:

a = input()
b =　input()

count = int(a)

num = map(int, b.split())
division = True
result = 0
while division:
    div = 0
    for i in range(count):
        if num[i]%2 == 0:
            div += 1
    if div == count:
        for j in range(count):
            num.append(num.pop(0)/2)
        result += 1
    else:
        division = False

print(result)

Submission status: Runtime Error

Solution code:

a = input()
b = input()

count = int(a)

num = map(int, b.split())
division = True
result = 0
while division:
    div = 0
    for i in range(count):
        if num[i]%2 == 0:
            div += 1
    if div == 3:
        for j in range(count):
            num.append(num.pop(0)/2)
        result += 1
    else:
        division = False

print(result)

Submission status: Runtime Error

Solution code:
import sys

import numpy as np

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines


def main():
    N = int(readline())
    A = list(map(int, readline().split()))
    A = np.array(A)

    cnt = 0
    for _ in range(10**9):
        A, F = np.divmod(A, 2)
        if np.max(F) == 1:
            break
        cnt += 1

    print(cnt)


main()

Submission status: Runtime Error

Solution code:
n=int(input())
k=100000000000000000000000000000000000000000
for i in range(n):
  j=0
  a=int(input())
  while a%2==0:
    a=a/2
    j+=1
  k=min(j,k)
  
print(k)

Submission status: Runtime Error

Solution code:
n=int(input())
k=100000000000000000000000000000000000000000
for i in range(n):
  j=0
  a=int(input())
  while a%2==0:
    a=a/2
    j+=1
  min(j,k)
  
print(k)

Submission status: Runtime Error

Solution code:
def checkCanHalf(ary):
  for item in ary:
    if(item % 2 != 0):
      return False
  return True

n = range(int(input()))
ary = map(int, input().split())
cnt = 0

while checkCanHalf(ary) == True:
  for i in range(len(ary)):
    ary[i] = ary[i]/2
  cnt += 1

print(cnt)

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:
import numpy as np
input()
x=np.array(input().split(),dttype=np.int32)
ans=0
while (x%2==0).all():
    x//2
    ans +=1
print(answer)

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:
n = int(input())
a = map(int,input())
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:
N = int(input())
box = list(map(int, input().split()))
count = 0
for i in range(N):
    if box%2 ==0:
        box/=2
        count ++
    elif box%2 !=0:
        break
print(count)

Submission status: Runtime Error

Solution code:
import numpy as np

a = int(input())
b = np.array([int(x) for x in input().split()])

if(a!=len(b)):
	print('the array size is different')
else:
	c = b%2
	d = b/2
	while sum(c)==0:
		COUNTS = int(1)
		COUNTS += 1
		c = d%2
		d = d/2

print(COUNTS)

Submission status: Runtime Error

Solution code:
n = int(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:
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())
X = list(map(int,input().split()))
h = Ture
count = 0
while h:
  for i in range(n):
    if X[i] %2 == 0 :
      X[i] = X[i]/2
    else:
      h = False
      break
  count+=1
  
print(count-1)

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
            break
    else:
        break

print(count)

Submission status: Runtime Error

Solution code:


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_dibishibles,a))

print(ans)

Submission status: Runtime Error

Solution code:
input()
A=list(map(int,input().split()))
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:
import numpy as np
n=int(input())
c=list(map(int, input().split()))
print(np.gcd.reduce(c))

Submission status: Runtime Error

Solution code:
import numpy as np
c=list(map(int, input().split()))
print(np.gcd.reduce(c))

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
      breake
  if break_flg :
    break
  else:
    total += 1
print(total)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

import sys

while True:
    for i in range(N):
        if a[i] % 2 == 0:
            a[i] = a[i]/2
        else:
            print(t)
            sys.exit()
    t += 1

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Even_flag=0
count=0

while Even_flag=0:
  for i in range(num):
    if fig[num]%2==1:
      Even_flag==1:
      break
    else:
      fig[num]=fing[num]/2
  count+=1
  
print(count)

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:
n = int(input())
a=input()
count = []

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

print(max(count))

Submission status: Runtime Error

Solution code:
n = int(input())
a=input()
count = []

for i in n:
	count[i] = 0
	while True:
		if a[i]%2=0 :
			a[i] = a[i]/2
			count[i] += 1
		else:
			break

max(count)

Submission status: Runtime Error

Solution code:
n = int(input())
a=input()
count = []

for i in n:
	while True:
		if a[i]%2=0 :
			a[i] = a[i]/2
			count[i] += 1
		else:
			break

max(count)

Submission status: Runtime Error

Solution code:
data = input()
for i in data:
  if i%2 != 0:
    break

Submission status: Runtime Error

Solution code:
N = int(input())
num = 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())
num = 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:
import sys

if sys.platform =='ios':
    sys.stdin=open('input_file.txt')
    

N=int(input())
A=list(map(int,input().split()))
	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:
a=int(input())
b,c,d=map(int,input().split())

s=0
while b%2==0 and c%2==0 and d%2==0:
  b=b/2
  c=c/2
  d=d/2
  s+=1
  
print(s)

Submission status: Runtime Error

Solution code:
N , a = map(int(),input().split())
ans = 0
for i in range (N) :
  s = a[i]
  d = s % 2
  if d == 0 :
    ans += s / 2
for i in range (N) :
  s = a[i]
  d = s % 2
  if d == 1 :
    ans = 0 
print (ans)

Submission status: Runtime Error

Solution code:
i = list(map(int, input().split(',')))
flg = 0
count = 0
while(flg == 0):
    if(i[0] % 2 == 0 and i[1] % 2 == 0 and i[2] % 2 == 0):
        i[0] /= 2
        i[1] /= 2
        i[2] /= 2
        count += 1
    else:
        flg = 1

print(count)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = [int(x) for x in input().split()]
cnt = 0
loop = True
if loop:
  if not all([n%2 is 0 for n in nums]):
    break
  for i, n in enumerate(nums):
    nums[i] = n//2
  cnt +=1
print(cnt)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = [int(x) for x in input().split()]
cnt = 0
loop = True
while loop:
  if not all([n % 2 is 0 for n in nums]):
    loop = Flase 
    break
    
  for i, n in enumerate(nums):
    nums[i] = n//2
  cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = [int(x) for x in input().split()]
cnt = 0
loop = True
while loop:
  if not all([n%2 is 0 for n in nums]):
    loop = Flase 
    break
  for i, n in enumerate(nums):
    nums[1] = n//2
  cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
N = int(input())
nums = [int(x) for x in input().split()]
cnt = 0
loop = True
while Loop:
  if not all([n%2 is 0 for n in nums]):
    loop = Flase 
    break
  for i, n in enumerate(nums):
    nums[1] = n//2
  cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
n = int(input())
as = [int(input()) for i in range(n)]
bool = False
cnt = 0
while(bool == False):
  for i in range(n):
    as[i] = as[i] // 2 
    if as[i] % 2 == 1:
      bool = True

      break
    else:
      cnt += 1
print(cnt)

Submission status: Runtime Error

Solution code:
n = int(input())
a = list(map(int, input()))
ans = 0
for i in range(n):
    if a[i]%2:
        a[i] = a[i]//2
    else:
        print(ans)
        exit()
    ans += 1

Submission status: Runtime Error

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

ans = 0
while all(A%2==0):
    A //= 2
    ans += 1

print(ans)

Submission status: Runtime Error

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

ans = 0
while all(A%2==0):
    A //= 2
    ans += 1

print(ans)

Submission status: Runtime Error

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

ans = 0
while all(A%2==0):
    A //= 2
    ans += 1

print(ans)

Submission status: Runtime Error

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

ans = 0
while all(A%2 == 0):
    A = A//2
    ans += 1

print(ans)

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)a

Submission status: Runtime Error

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

Submission status: Runtime Error

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