n = int(eval(input()))

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

boolean = True

count = 0



while boolean:

  for i in range(n):

    if a[i] % 2 != 0:

      boolean = False

    else:

      a[i] = a[i] / 2

  if boolean:

    count += 1



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

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

cnt = 0



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

    a = list([int(x/2) for x in a])

    cnt += 1



print(cnt)



n = int(eval(input()))
a = [int(x) for x in input().split()]
boolean = True
count = 0
while boolean:
    for i in range(n):
        if a[i] % 2 != 0:
            boolean = False
        else:
            a[i] = a[i] / 2
    if boolean:
        count += 1
print(count)

n = int(eval(input()))
a = list(map(int, input().split()))
cnt = 0
while all(i % 2 == 0 for i in a):
    a = list([int(x / 2) for x in a])
    cnt += 1
print(cnt)

-a = [int(x) for x in input().split()] -boolean = True -count = 0 -while boolean: -    for i in range(n): -        if a[i] % 2 != 0: -            boolean = False -        else: -            a[i] = a[i] / 2 -    if boolean: -        count += 1 -print(count) +a = list(map(int, input().split())) +cnt = 0 +while all(i % 2 == 0 for i in a): +    a = list([int(x / 2) for x in a]) +    cnt += 1 +print(cnt)