num = int(eval(input()))

s = input().rstrip().split(' ')

s = [ int(x) for x in s]

count = 0

key = True



while key:

    for i in range(num):

        if( s[i] % 2 == 0):

            s[i] = s[i] // 2

        else:

            key = False



    if key:

        count += 1



print(count)

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((round(ans)))
num = int(eval(input()))
s = input().rstrip().split(" ")
s = [int(x) for x in s]
count = 0
key = True
while key:
    for i in range(num):
        if s[i] % 2 == 0:
            s[i] = s[i] // 2
        else:
            key = False
    if key:
        count += 1
print(count)

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((round(ans)))

-num = int(eval(input())) -s = input().rstrip().split(" ") -s = [int(x) for x in s] -count = 0 -key = True -while key: -    for i in range(num): -        if s[i] % 2 == 0: -            s[i] = s[i] // 2 -        else: -            key = False -    if key: -        count += 1 -print(count) +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((round(ans)))