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 = input()
vals = map(int, input().split())
result = 1000000
for i in range(N):
    val = vals[i]
    count = 0
    while True:
        if val % 2 == 1:
            break
        val /= 2
        count += 1
    if result > count:
        result = count
print (result)

Submission status: Runtime Error

Solution code:
N = input()
vals = map(int, input().split())
result = 1000000
for i in xrange(N):
    val = vals[i]
    count = 0
    while True:
        if val % 2 == 1:
            break
        val /= 2
        count += 1
    if result > count:
        result = count
print (result)

Submission status: Runtime Error

Solution code:
import sys
N = input()
vals = map(int, input().split())
result = sys.maxint
for i in xrange(N):
    val = vals[i]
    count = 0
    while True:
        if val % 2 == 1:
            break
        val /= 2
        count += 1
    if result > count:
        result = count
print (result)

Submission status: Runtime Error

Solution code:
N = input()
vals = map(int, input().split())
count = 0
is_odd = False
while True:
    for val in vals:
        if val % 2 == 1:
            is_odd = True
    if is_odd:
        break
    for i in xrange(N):
        vals[i] /= 2
    count += 1
print (count)

Submission status: Runtime Error

Solution code:

N = input()
vals = map(int, input().split())
count = 0
is_odd = False
while True:
    for val in vals:
        if val % 2 == 1:
            is_odd = True
    if is_odd:
        break
    for i in range(N):
        vals[i] /= 2
    count += 1
print (count)

Submission status: Runtime Error

Solution code:
N = input()
vals = input().split()
count = 0
while True:
    for val in vals:
        if val % 2 == 1:
            break
    else:
        count += 1
        vals = map(lambda x: x/2, vals)
        continue
    break
print (count)

Submission status: Runtime Error

Solution code:
N = input()
vals = input().split()
count = 0
while True:
    for val in vals:
        if val % 2 == 1:
            break
    else:
        vals = map(lambda x: x/2, vals)
        continue
    break
print (count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
N=int(input())
c=list(map(int, input().split()))
k = 1
count = 0
while True:
  for i in range(N):
    k = k*c[N]
  c_1 = (c % (2**N))
  if (c_1 == 0):
    for j in range(N):
      count += 1
      c[j] = c[j]/2
  else:
    break
print(count)

Submission status: Runtime Error

Solution code:
N=int(input())
c=list(map(int, input().split()))
k = 1
count = 0
while True:
  for i in range(N):
    k = k*c[N]
  c_1 = (c % (2**N))
  if (c_1 == 0):
    for j in range(N):
      c[j] = c[j]/2
  else:
    break

Submission status: Runtime Error

Solution code:
n=input()
a=list(int,input().split())
count=0
while (i%==0):
  a=a/2
  count+=1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

while flag==0:
  for i in range(N):
    if A[i]&1==0:
      A[i]=A[i]>>1
    else:
      print(ans)
      flag=1
      break
  ans+=1

Submission status: Runtime Error

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

while True:
  for i in range(N):
    if A[i]&1==0:
      A[i]=A[i]>>1
    else:
      print(ans)
      return
  ans+=1

Submission status: Runtime Error

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

while True:
  for i in range(N):
    if A[i]%2==0:
      A[i]=A//2
    else:
      print(ans)
      return
  ans+=1

Submission status: Runtime Error

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

while True:
  for i in range(N):
    if A[i]&1==0:
      A[i]=A>>1
    else:
      print(ans)
      return
  ans+=1

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")
 
t = 0 
a=0 
while True: 
  num2=[] 
  for i in num: 
    if not (int(i)%2): 
     a =1 
       break 
    num2.append(int(i)%2) 
  num = num2 
  t+=1 
  if a==1: 
     print(t) 
     break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")
 
t = 0 
a=0 
while True: 
  num2=[] 
  for i in num: 
    if not (int(i)%2): 
    	a =1 
       break 
    num2.append(int(i)%2) 
  num = num2 
  t+=1 
  if a==1: 
     print(t) 
     break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")
 
t = 0 
a=0 
while True: 
  num2=[] 
  for i in num: 
    if not (int(i)%2): 
    	a =1 
        break 
    num2.append(int(i)%2) 
  num = num2 
  t+=1 
  if a==1: 
     print(t) 
     break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")
 
t = 0 
a=0 
while True: 
  num2=[] 
  for i in num: 
    if not (int(i)%2): 
    	a =1 
        break 
    num2.append(int(i)%2) 
    num = num2 
    t+=1 
    if a==1: 
       print(t) 
       break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0 
 a=0 
while True: 
  num2=[] 
  for i in num: 
    if not (int(i)%2): 
    	a =1 
        break 
    num2.append(int(i)%2) 
    num = num2 
    t+=1 
    if a==1: 
       print(t) 
       break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0 
 a=0 
  while True: 
    num2=[] 
    for i in num: 
      if not (int(i)%2): 
        a =1 
        break 
        num2.append(int(i)%2) 
        num = num2 
        t+=1 
        if a==1: 
          print(t) 
          break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0 
 a=0 
 while True: 
     num2=[] 
     for i in num: 
         if not (int(i)%2): 
             a =1 
             break 
         num2.append(int(i)%2) 
     num = num2 
     t+=1 
     if a==1: 
         print(t) 
        break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0 
    ...: a=0 
    ...: while True: 
    ...:     num2=[] 
    ...:     for i in num: 
    ...:         if not (int(i)%2): 
    ...:             a =1 
    ...:             break 
    ...:         num2.append(int(i)%2) 
    ...:     num = num2 
    ...:     t+=1 
    ...:     if a==1: 
    ...:         print(t) 
    ...:         break

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0
while True:
  num2 = []
  for i in num:
    if i%2 !=0:
      break
    num2.append(i/2)
   t+=1
   num = num2
prtin(t)

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = input().split(" ")

t = 0
while true:
  num2 = []
  for i in num:
    if i%2 !=0:
      break
    num2.append(i/2)
   t+=1
   num = num2
prtin(t)

Submission status: Runtime Error

Solution code:
n = input()
num = []
num = " ".split(input())

t = 0
while true:
  num2 = []
  for i in num:
    if i%2 !=0:
      break
    num2.append(i/2)
   t+=1
   num = num2
prtin(t)

Submission status: Runtime Error

Solution code:
import sys
N = sys.stdin.readline().rstrip(); N = int(N)
A = []
cnt = 0
while cnt < N:
  element = sys.stdin.readline().rstrip()
  element = int(element)
  A.append(element)
  cnt += 1

ans = 0
while True:
  # check
  bool_check=True
  for i in xrange(N):
    if A[i] % 2 == 1:
      bool_check = False
      break
  if bool_check == False: break
  
  # update
  for i in xrange(N): A[i] /= 2
  ans += 1
print ans

Submission status: Runtime Error

Solution code:
def counter(a):
  count = 0 
  while a%2 ==0:
    a /= 2
    count += 1
  return count
s = list(map(int,input().split()))
print(min(list(map(counter,s)))

Submission status: Runtime Error

Solution code:
lis = map(int,input().split())
 
def counter(x):
  count = 0 
  while x%2 ==0:
    x = x/2
    count += 1
  return count
 
min(counter,lis)

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
cnt=0
for _ in range(len(bin(max(a))-2):
  for i in a:
    if a%2==1:
      break
  cnt+=1
print(cnt)

Submission status: Runtime Error

Solution code:
n = input()
a = list(map(int, input().split())
while True:
	sum(a)
	if sum % 2:
		break
	for num in a:
		num = num / 2
	i += 1
print(i)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
from functools import reduce
n=int(input())
lst=list(map(int,input().split()))
count=0
def gcd(*numbers):
    return reduce(math.gcd, numbers)
result = gcd(*lst)
while 1:
    if result%2 == 0:
        count += 1
        result //= 2
    else:
        break
print(count)

Submission status: Runtime Error

Solution code:
import math
from functools import reduce

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

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

result = gcd(*lst)

while 1:
    if result%2 == 0:
        count += 1
        result //= 2
    else:
        break
print(count)

Submission status: Runtime Error

Solution code:
n = int(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 = int(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:
import math

n = int(input())
arr = [int(x) for x in input().split()]

count = 0
max_even = 0
for x in arr:
   if x % == 2 and x > max_even:
      max_even = x 

print(math.log2(max_even))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

c = list()

for n in range(N):
    for i in range(1,30):
        if not a[n]%(2**i)==0:
            c.append(i-1)
            break
print(min(c))

Submission status: Runtime Error

Solution code:
n = int(input())
A = [int(i) for i in input().split()]
if all(A[i] % 2 == 0 for i in range(n)):
    ans = 10 ** 9
    for i in range(n):
        count = 0
        while A[i] % 2 == 0:
            A[i] //= 2
            count += 1
        ans = min(ans, count)
print(ans)

Submission status: Runtime Error

Solution code:
def main(n, xs):
    # type: (int, List[int]) -> None
    even = lambda x: x % 2 == 0 # type: Callable[[int],bool]
    allEven = lambda xs: all(map(even, xs)) # type: Callable[[List[int]],bool]
    cnt = 0
    while allEven(xs):
        cnt = cnt + 1
        xs = list(map(lambda x: x // 2, xs))
    return

if __name__ == '__main__':
    # main(sys.argv[1:])
    n = int(input())
    xs = list(map(lambda _: int(input()), range(n)))
    main(n, xs)

Submission status: Runtime Error

Solution code:
n = int(input())
a = input().split(" ")

for i in range(100):
    for j in range(len(a)):
        if(int(a[j]) % 2 != 0):
            break
        else:
            a[j] = int(a[j]) / 2
            count += 1
    else:
        continue
    break

print(count // len(a))

Submission status: Runtime Error

Solution code:
a = input()
ans = 0

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

print(ans)

Submission status: Runtime Error

Solution code:
a=int(input())
b=[]
count=0
for i in len(b):
  if i%a!==0:
    break
  else:
    i=i//a
    count+=1
print(count//len(b))

Submission status: Runtime Error

Solution code:
n=int(input())
a=list(map(int,input().split()))
a=eval("+".join(str(a)))
l=0
while a%2==0:
  l+=1
print(l)

Submission status: Runtime Error

Solution code:
import sys

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

bin_vals = [bin(val) for val in a]
bit_result = bin(0)

# 論理和
for r in bin_vals:
    bit_result = bit_result | r

int_result = int(str(bit_result), 2)
count = 0
while True:
    if int_result % 2 != 0:
        break
    int_result = int_result / 2
    count = count + 1
print(count)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import sys
n=map(int,input().split(" "))
count=0
while(True):
  for i,m to n:
    if m%2==0:
      n[i]=m
    else:
      print(count)
      sys.exit()
  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(input())
a = map(int,input().split())
ans = min(map(how_many_times_divisible, a))
print ans

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
N = int(input())
array = [map(int,input().split())]
n = 0
for i in range(N+1):
  if array[i] % 2 == 0:
    continue    
  else:
    break
n = n+1
continue
print(n)

Submission status: Runtime Error

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

mindiv = -1
for a in range(A):
  if mindiv == -1:
    mindiv = bin(a) - bin(a).rstrip('0')
  else:
    tmp = bin(a) - bin(a).rstrip('0')
    if tmp < mindiv:
      mindiv = tmp

print(mindiv)

Submission status: Runtime Error

Solution code:
import sys

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

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

main()

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0
flag=True
while (flag==True):
        for e in dat:
               e=e/2
         re = re+1
         break
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0
flag=True
while (flag==True):
        for e in dat:
            if (e%2==1): 
                 flag=False
                 break

         re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0
flag=True
while (flag==True):
       for e in dat:
            if (e%2==1):
                flag=False
                break
            else:
                e = e/2
        re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0
flag=True
while (flag==True):
       for e in dat:
            if e%2==1:
                flag=False
                break
            else:
                e = e/2
        re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0

while (True):
       for e in dat:
            if e%2==1:
                break
            else:
                e = e/2
         re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0

while (True):
       for e in dat:
            if e%2==1:
                break
                return re
            else:
                e = int(e/2)
         re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0

while (True):
       for e in dat:
            if e%2==1:
                break
                return re
            else:
                e = e/2
         re = re+1

print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat=list(map(int, input().split()))
      
re = 0

while (True):
       for e in dat:
            if e%2==1:
                return re
            else:
                e = e/2
         re = re+1

print(re)

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()
       e = "".join(e)
re = []

for e in dat:
      
      try:
          w=e.index('1')
          re.append(w)
      except Exception:
          re.append(0)

print(min(re))

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re = []

for e in dat:
      try:
          w=e.index('1')
          re.append(w)
      except RintimeError:
          re.append(0)

print(min(re))
         
       

print(1)

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re = []

for e in dat:
      try:
          w=e.index('1')
          re.append(w)
      except IndexError:
          re.append(0)

print(min(re))
         
       

print(1)

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re=[]

for e in dat:
       re.append(len(e))

print(min(re))

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re=[]

for e in dat:
      try:
#          w=e.index('1')
 #         re.append(w)
       except ValueError:
          re.append(0)

print(min(re))

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re=[]

for e in dat:
      try:
          w=e.index('1')
          re.append(w)
       except ValueError:
          re.append(0)

print(min(re))

Submission status: Runtime Error

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

for e in dat:
       e = bin(e)[2:]
       e = list(e).reverse()

re=[]

for e in dat:
      try:
          w=e.index('1')
          re.append(w)
       except ValueError
          re.append(0)

print(min(re))

Submission status: Runtime Error

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

flag=True
count = 0

for e in dat:
     e = e/2
 count = count+1

print(count)

Submission status: Runtime Error

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

flag=True
count = 0

for i in range(n):
     dat[i] = dat[i]/2
 count = count+1

print(count)

Submission status: Runtime Error

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

flag=True
count = 0

while (flag==True):
    for i in range(n):
            if dat[i]%2==1:
                flag=False
                break
           else:
                dat[i] = dat[i]/2
     count = count+1

print(count)

Submission status: Runtime Error

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

flag=True
count = 0

while flag==True:
     for i in range(n):
         if dat[i]%2==1:
             flag=False
              break
          else:
              dat[i] = dat[i]/2
       count = count+1

print(count)

Submission status: Runtime Error

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

flag=True
int count = 0

while flag==True:
     for i in range(n):
         if dat[i]%2==1:
             flag=False
              break
          else:
              dat[i] = dat[i]/2
       count = count+1

print(count)

Submission status: Runtime Error

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

boolean flag=True
int count = 0

while flag==True:
     for i in range(n):
         if dat[i]%2==1:
             flag=False
              break
          else:
              dat[i] = dat[i]/2
       count = count+1

print(count)

Submission status: Runtime Error

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

boolean flag=True
int count = 0

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

print(count)

Submission status: Runtime Error

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

boolean flag=True
int count = 0

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

print(count)

Submission status: Runtime Error

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

boolean flag=True
int count = 0

while flag:
     for int i in range(n):
         if dat[i]%2==1:
             break
             flag=False
          else:
              dat[i] = dat[i]/2
       count = count+1

print(count)

Submission status: Runtime Error

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

 re=1
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
    re=  e.count('1')
     
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
     w=len(e)
     
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
     w=e.index(1)
     
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
     w=e.index('1')
     
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
     w=e.index("1")
     re=w
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

re = 0
for e in dat:
     w=e.index('1')
     re=w
     
print(re)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

m=0 
 for i in range(n):
       m=len(dat[i])
      
             
print(m)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

min=0
 for e in dat:
       min = min+1
             
print(min)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

min=0
 for e in dat:
       i=0
       while i < len(e):
             #if e[i]=='1':
                # if i > min:
                #     min = i
                #     break
           #  else:
                  i=i+1
print(min)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

min=0
 for e in dat:
       i=0
       while i < len(e):
             if e[i]=='1':
                # if i > min:
                #     min = i
                     break
             else:
                  i=i+1
print(min)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = list(str(bin(e)))
    e.reverse()

min=0
 for e in dat:
       i=0
       while i < len(e):
             if e[i]=='1':
                 if i > min:
                     min = i
                     break
             else:
                  i=i+1
print(min)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=list(e)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
    e1=list(e)
    e1.reverse()

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
    e=list(e)
    e.reverse()

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
     e=e[::-1]

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for e in dat:
     i = len(e)

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for e in dat:
      dan.append(len(e))

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for e in dat:
      j = -1
     while j > -len(e):
                j = j -1

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for e in dat:
      j = -1
     while j > -len(e):
           if e[j]=='1':
                break
            else:
                j = j -1

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for e in dat:
      j = -1
     while j > -len(e):
           if e[j]=='1':
                dan.append(-j-1)
                break
            else:
                j = j -1

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
#for i in range(n):
#      j = -1
#     while j > -len(dat[i]):
#          if dat[i][j]=='1':
 #              dan.append(-j-1)
#               break
#          else:
#               j = j - 1
           
print(min(len(dat))

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for i in range(n):
      j = -1
     while j > -len(dat[i]):
          if dat[i][j]=='1':
               dan.append(-j-1)
               break
          else:
               j = j - 1
           
print(min(dan))

Submission status: Runtime Error

Solution code:
n=int(input())
dat = list(map(int, input().split()))
dan = []
for e in dat:
    e = str(bin(e))
    e=e[2:]
       
for i in range(n):
      j = -1
     while j > -len(dat[i]):
          if dat[i][j]=='1':
               dan.append(-j-1)
               break
          else:
               j = j - 1
           
print(min(das))

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

dat2=list(n)
for e in dat:
    print(e)

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e[1]

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e[::1]

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e[::-1]

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e [::-1]

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e.rfind('1')

#print(min(dat)-1)

Submission status: Runtime Error

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

for e in dat:
    e = str(bin(e))

for e in dat:
    e = e.rfind('1')

print(min(dat)-1)