import numpy as np

eval(input())

x = np.array(input().split(),dtype=np.int32)



ans = 0

while (x%2 == 0).all():

  x = x//2

  ans += 1

print(ans)
N = int(eval(input()))

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

result = float('inf')

for i in range(N):

  r=0

  while A[i]%2==0:

    A[i]=A[i]/2

    r +=1

  result=min(result,r)

print(result)
import numpy as np

eval(input())
x = np.array(input().split(), dtype=np.int32)
ans = 0
while (x % 2 == 0).all():
    x = x // 2
    ans += 1
print(ans)

N = int(eval(input()))
A = [int(x) for x in input().split()]
result = float("inf")
for i in range(N):
    r = 0
    while A[i] % 2 == 0:
        A[i] = A[i] / 2
        r += 1
    result = min(result, r)
print(result)

-import numpy as np - -eval(input()) -x = np.array(input().split(), dtype=np.int32) -ans = 0 -while (x % 2 == 0).all(): -    x = x // 2 -    ans += 1 -print(ans) +N = int(eval(input())) +A = [int(x) for x in input().split()] +result = float("inf") +for i in range(N): +    r = 0 +    while A[i] % 2 == 0: +        A[i] = A[i] / 2 +        r += 1 +    result = min(result, r) +print(result)