n = eval(input())

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

ans = 0

while not any (a%2 for a in A):

    ans+=1

    A = [a/2 for a in A]

print(ans)
def times_divisible(n):

    ans = 0 

    while n%2 ==0:

        n/=2

        ans +=1

    return ans

n= int(eval(input()))

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

ans = min(times_divisible(a) for a in A)

print(ans)
n = eval(input())
A = list(map(int, input().split()))
ans = 0
while not any(a % 2 for a in A):
    ans += 1
    A = [a / 2 for a in A]
print(ans)

def times_divisible(n):
    ans = 0
    while n % 2 == 0:
        n /= 2
        ans += 1
    return ans


n = int(eval(input()))
A = [int(a) for a in input().split()]
ans = min(times_divisible(a) for a in A)
print(ans)

-n = eval(input()) -A = list(map(int, input().split())) -ans = 0 -while not any(a % 2 for a in A): -    ans += 1 -    A = [a / 2 for a in A] +def times_divisible(n): +    ans = 0 +    while n % 2 == 0: +        n /= 2 +        ans += 1 +    return ans + + +n = int(eval(input())) +A = [int(a) for a in input().split()] +ans = min(times_divisible(a) for a in A)