import numpy as np

n=int(eval(input()))

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

b=0

while np.all(a%2==0):

	a=a/2

	b+=1

	

print(b)
a = int(eval(input("")))

b = input("").split(" ")

c = 0

d = []



for i in range(a):

	c = 0

	while (int(b[i]) % 2 == 0):

		b[i] = int(b[i]) / 2

		c += 1

	d.append(c)

print((min(d)))
import numpy as np

n = int(eval(input()))
a = np.array(list(map(int, input().split())))
b = 0
while np.all(a % 2 == 0):
    a = a / 2
    b += 1
print(b)

a = int(eval(input("")))
b = input("").split(" ")
c = 0
d = []
for i in range(a):
    c = 0
    while int(b[i]) % 2 == 0:
        b[i] = int(b[i]) / 2
        c += 1
    d.append(c)
print((min(d)))

-import numpy as np - -n = int(eval(input())) -a = np.array(list(map(int, input().split()))) -b = 0 -while np.all(a % 2 == 0): -    a = a / 2 -    b += 1 -print(b) +a = int(eval(input(""))) +b = input("").split(" ") +c = 0 +d = [] +for i in range(a): +    c = 0 +    while int(b[i]) % 2 == 0: +        b[i] = int(b[i]) / 2 +        c += 1 +    d.append(c) +print((min(d)))