# coding: utf-8

# Your code here!



num_len = int(eval(input()))

num_list = list(map(int, input().split(" ")))

#print(num_list)

count = 0

while all(i % 2 == 0 for i in num_list):

    num_list =[j // 2 for j in num_list]

    count += 1

    

print(count)

    
# coding: utf-8

# Your code here!



num = int(eval(input()))

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



count = 0

while all (i % 2 == 0 for i in s):

    s = [i // 2 for i in s]

    count += 1

    

print(count)



    
# coding: utf-8
# Your code here!
num_len = int(eval(input()))
num_list = list(map(int, input().split(" ")))
# print(num_list)
count = 0
while all(i % 2 == 0 for i in num_list):
    num_list = [j // 2 for j in num_list]
    count += 1
print(count)

# coding: utf-8
# Your code here!
num = int(eval(input()))
s = list(map(int, input().split()))
count = 0
while all(i % 2 == 0 for i in s):
    s = [i // 2 for i in s]
    count += 1
print(count)

-num_len = int(eval(input())) -num_list = list(map(int, input().split(" "))) -# print(num_list) +num = int(eval(input())) +s = list(map(int, input().split())) -while all(i % 2 == 0 for i in num_list): -    num_list = [j // 2 for j in num_list] +while all(i % 2 == 0 for i in s): +    s = [i // 2 for i in s]