n = int(eval(input()))

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

count = 0

for _ in range(10**6):

  for i in range(n):

    if a[i] % 2 == 0:

      a[i] = a[i]//2

      count += 1

    else:

      break

print((count//n))
N = int(eval(input()))

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

ans = 0

while True:

    if all([x % 2 == 0 for x in A]):

        ans += 1

        A = list([x/2 for x in A])

    else:

        break

print(ans)
n = int(eval(input()))
a = list(map(int, input().split()))
count = 0
for _ in range(10**6):
    for i in range(n):
        if a[i] % 2 == 0:
            a[i] = a[i] // 2
            count += 1
        else:
            break
print((count // n))

N = int(eval(input()))
A = list(map(int, input().split()))
ans = 0
while True:
    if all([x % 2 == 0 for x in A]):
        ans += 1
        A = list([x / 2 for x in A])
    else:
        break
print(ans)

-n = int(eval(input())) -a = list(map(int, input().split())) -count = 0 -for _ in range(10**6): -    for i in range(n): -        if a[i] % 2 == 0: -            a[i] = a[i] // 2 -            count += 1 -        else: -            break -print((count // n)) +N = int(eval(input())) +A = list(map(int, input().split())) +ans = 0 +while True: +    if all([x % 2 == 0 for x in A]): +        ans += 1 +        A = list([x / 2 for x in A]) +    else: +        break +print(ans)