N = int(eval(input()))

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



j=0

while True:

  i=0

  for a in A:

    if a%2 == 0:

      A[i]=a//2

    else:

      break

    i+=1

  if i != N:

    break

  j +=1

  

print(j)
def calc(a):

  ans=0

  

  while a%2==0:

    a/=2

    ans+=1

    

  return ans



N = int(eval(input()))

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



print((min(list(map(calc, A)))))
N = int(eval(input()))
A = list(map(int, input().split()))
j = 0
while True:
    i = 0
    for a in A:
        if a % 2 == 0:
            A[i] = a // 2
        else:
            break
        i += 1
    if i != N:
        break
    j += 1
print(j)

def calc(a):
    ans = 0
    while a % 2 == 0:
        a /= 2
        ans += 1
    return ans


N = int(eval(input()))
A = list(map(int, input().split()))
print((min(list(map(calc, A)))))

+def calc(a): +    ans = 0 +    while a % 2 == 0: +        a /= 2 +        ans += 1 +    return ans + + -j = 0 -while True: -    i = 0 -    for a in A: -        if a % 2 == 0: -            A[i] = a // 2 -        else: -            break -        i += 1 -    if i != N: -        break -    j += 1 -print(j) +print((min(list(map(calc, A)))))