n = int(eval(input()))

a = [int(i) for i in input().split()]

count = 0

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

    a = [i/2 for i in a]

    count += 1

print(count)
import sys

read = sys.stdin.buffer.read

readline = sys.stdin.buffer.readline

readlines = sys.stdin.buffer.readlines



n = int(readline())

a = [int(x) for x in readline().split()]

ans = float('inf')

for x in a:

    ans = min(ans, len(bin(x)) - bin(x).rfind('1') - 1)

print(ans)
n = int(eval(input()))
a = [int(i) for i in input().split()]
count = 0
while all(i % 2 == 0 for i in a):
    a = [i / 2 for i in a]
    count += 1
print(count)

import sys

read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
n = int(readline())
a = [int(x) for x in readline().split()]
ans = float("inf")
for x in a:
    ans = min(ans, len(bin(x)) - bin(x).rfind("1") - 1)
print(ans)

-n = int(eval(input())) -a = [int(i) for i in input().split()] -count = 0 -while all(i % 2 == 0 for i in a): -    a = [i / 2 for i in a] -    count += 1 -print(count) +import sys + +read = sys.stdin.buffer.read +readline = sys.stdin.buffer.readline +readlines = sys.stdin.buffer.readlines +n = int(readline()) +a = [int(x) for x in readline().split()] +ans = float("inf") +for x in a: +    ans = min(ans, len(bin(x)) - bin(x).rfind("1") - 1) +print(ans)