N = eval(input())

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

count = 0

exist_odd = False



while (exist_odd == False):

  for x in A:

    if x % 2 != 0:

      exist_odd = True

      

  if exist_odd == True:

    break

  else:

    A = [x/2 for x in A]

  count += 1

print(count)

        
N = int(eval(input()))

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

count = 0

flag = True

while(flag):

    for i in range(N):

        if A[i] % 2 == 0:

            A[i] = A[i]/2

        else:

            flag = False

            break

    if flag == True:

        count+=1

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

N = int(eval(input()))
A = list(map(int, input().split()))
count = 0
flag = True
while flag:
    for i in range(N):
        if A[i] % 2 == 0:
            A[i] = A[i] / 2
        else:
            flag = False
            break
    if flag == True:
        count += 1
print(count)

-N = eval(input()) +N = int(eval(input())) -exist_odd = False -while exist_odd == False: -    for x in A: -        if x % 2 != 0: -            exist_odd = True -    if exist_odd == True: -        break -    else: -        A = [x / 2 for x in A] -    count += 1 +flag = True +while flag: +    for i in range(N): +        if A[i] % 2 == 0: +            A[i] = A[i] / 2 +        else: +            flag = False +            break +    if flag == True: +        count += 1