import numpy as np



def how_many_times_divisibles(j):

	counter=0

	while j%2==0:

		j/=2

		counter+=1

	return counter



n=int(eval(input()))

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

ans=min(list(map(how_many_times_divisibles,a)))

print(ans)
def howmanytimes(j):

  counter=0

  while j%2==0:

    j/=2

    counter+=1

  return counter



n=int(eval(input()))

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

ans=min(list(map(howmanytimes,a)))

print(ans)

    

    

import numpy as np


def how_many_times_divisibles(j):
    counter = 0
    while j % 2 == 0:
        j /= 2
        counter += 1
    return counter


n = int(eval(input()))
a = list(map(int, input().split()))
ans = min(list(map(how_many_times_divisibles, a)))
print(ans)

def howmanytimes(j):
    counter = 0
    while j % 2 == 0:
        j /= 2
        counter += 1
    return counter


n = int(eval(input()))
a = list(map(int, input().split()))
ans = min(list(map(howmanytimes, a)))
print(ans)

-import numpy as np - - -def how_many_times_divisibles(j): +def howmanytimes(j): -ans = min(list(map(how_many_times_divisibles, a))) +ans = min(list(map(howmanytimes, a)))