N = eval(input())

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

def cnt(x):

    i = 0

    while x%2 == 0:

        x //= 2

        i += 1

    return i

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

print(ans)


def div_by_2(n):

    res = 0

    while n % 2 == 0:

        n //= 2

        res += 1

    return res



N = int(eval(input()))

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

print((min(list(map(div_by_2, A)))))
N = eval(input())
A = [int(x) for x in input().split()]


def cnt(x):
    i = 0
    while x % 2 == 0:
        x //= 2
        i += 1
    return i


ans = min(cnt(a) for a in A)
print(ans)

def div_by_2(n):
    res = 0
    while n % 2 == 0:
        n //= 2
        res += 1
    return res


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

-N = eval(input()) -A = [int(x) for x in input().split()] +def div_by_2(n): +    res = 0 +    while n % 2 == 0: +        n //= 2 +        res += 1 +    return res -def cnt(x): -    i = 0 -    while x % 2 == 0: -        x //= 2 -        i += 1 -    return i - - -ans = min(cnt(a) for a in A) -print(ans) +N = int(eval(input())) +A = list(map(int, input().split())) +print((min(list(map(div_by_2, A)))))