eval(input())



import numpy as np

A = np.array(list(map(int, input().split(" "))))

a = 0



while np.sum(A%2) == 0:

  A = A/2

  a = a + 1



print(a)
eval(input())



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

B = 0



while all(a%2 == 0 for a in A):

  A = [a/2 for a in A]

  B += 1

  

print(B)

    
eval(input())
import numpy as np

A = np.array(list(map(int, input().split(" "))))
a = 0
while np.sum(A % 2) == 0:
    A = A / 2
    a = a + 1
print(a)

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

-import numpy as np - -A = np.array(list(map(int, input().split(" ")))) -a = 0 -while np.sum(A % 2) == 0: -    A = A / 2 -    a = a + 1 -print(a) +A = list(map(int, input().split(" "))) +B = 0 +while all(a % 2 == 0 for a in A): +    A = [a / 2 for a in A] +    B += 1 +print(B)