N = eval(input())

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

end = True

count = 0



def div2(y):

    return y / 2



while end:

    for i in x:

        if i % 2 == 1:

            end = False

            break

    else:

        count += 1

        x = list(map(div2, x))

        continue

    break

print(count)
N = eval(input())

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



ans = 10 ** 9

for a in A:

    x = 0

    while a > 1:

        if a % 2 != 0:

            break

        a //= 2

        x += 1

    ans = min(ans, x)



print(ans)
N = eval(input())
x = list(map(int, input().split()))
end = True
count = 0


def div2(y):
    return y / 2


while end:
    for i in x:
        if i % 2 == 1:
            end = False
            break
    else:
        count += 1
        x = list(map(div2, x))
        continue
    break
print(count)

N = eval(input())
A = list(map(int, input().split()))
ans = 10**9
for a in A:
    x = 0
    while a > 1:
        if a % 2 != 0:
            break
        a //= 2
        x += 1
    ans = min(ans, x)
print(ans)

-x = list(map(int, input().split())) -end = True -count = 0 - - -def div2(y): -    return y / 2 - - -while end: -    for i in x: -        if i % 2 == 1: -            end = False +A = list(map(int, input().split())) +ans = 10**9 +for a in A: +    x = 0 +    while a > 1: +        if a % 2 != 0: -    else: -        count += 1 -        x = list(map(div2, x)) -        continue -    break -print(count) +        a //= 2 +        x += 1 +    ans = min(ans, x) +print(ans)