N = int(eval(input()))

list = input().split()



num_list = []

for c in list:

    n = int(c)

    num_list.append(n)



state = True



i = 0



while state:

    j = 0

    for n in num_list:

        if n % 2:

            state = False

        else:

            del num_list[j]

            n /= 2

            n = int(n)

            num_list.insert(j,n)

        j += 1

        if j == N and state:

            i += 1

print(i)

import math

n = eval(input())

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

ans = float("inf")

for i in a:

    ans = min(ans, len(bin(i)) - (bin(i).rfind("1") + 1))

print(ans)
N = int(eval(input()))
list = input().split()
num_list = []
for c in list:
    n = int(c)
    num_list.append(n)
state = True
i = 0
while state:
    j = 0
    for n in num_list:
        if n % 2:
            state = False
        else:
            del num_list[j]
            n /= 2
            n = int(n)
            num_list.insert(j, n)
        j += 1
        if j == N and state:
            i += 1
print(i)

import math

n = eval(input())
a = list(map(int, input().split()))
ans = float("inf")
for i in a:
    ans = min(ans, len(bin(i)) - (bin(i).rfind("1") + 1))
print(ans)

-N = int(eval(input())) -list = input().split() -num_list = [] -for c in list: -    n = int(c) -    num_list.append(n) -state = True -i = 0 -while state: -    j = 0 -    for n in num_list: -        if n % 2: -            state = False -        else: -            del num_list[j] -            n /= 2 -            n = int(n) -            num_list.insert(j, n) -        j += 1 -        if j == N and state: -            i += 1 -print(i) +import math + +n = eval(input()) +a = list(map(int, input().split())) +ans = float("inf") +for i in a: +    ans = min(ans, len(bin(i)) - (bin(i).rfind("1") + 1)) +print(ans)