

n = int(eval(input()))

l = input().split()

l_i = [int(j) for j in l]



min = l_i[0]

count = 0

flag = True



while True:

    for i in range(n):

        if l_i[i] % 2 == 0:

            l_i[i] = l_i[i] / 2

        else :

            flag = False

    if flag:

        count += 1

    else:

        break



print(count)

# -*- coding:utf-8 -*-

import math



n = int(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()))
l = input().split()
l_i = [int(j) for j in l]
min = l_i[0]
count = 0
flag = True
while True:
    for i in range(n):
        if l_i[i] % 2 == 0:
            l_i[i] = l_i[i] / 2
        else:
            flag = False
    if flag:
        count += 1
    else:
        break
print(count)

# -*- coding:utf-8 -*-
import math

n = int(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)

+# -*- coding:utf-8 -*- +import math + -l = input().split() -l_i = [int(j) for j in l] -min = l_i[0] -count = 0 -flag = True -while True: -    for i in range(n): -        if l_i[i] % 2 == 0: -            l_i[i] = l_i[i] / 2 -        else: -            flag = False -    if flag: -        count += 1 -    else: -        break -print(count) +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)