import numpy as np

N = int(eval(input()))

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

A = np.array(A)

count = 0

while 1:

    x = 0

    for i in range(N):

        if A[i] % 2 == 1:

            x = 1

    if x == 1:

        break

    else:

        A = A / 2

        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)))
import numpy as np

N = int(eval(input()))
A = list(map(int, input().split()))
A = np.array(A)
count = 0
while 1:
    x = 0
    for i in range(N):
        if A[i] % 2 == 1:
            x = 1
    if x == 1:
        break
    else:
        A = A / 2
        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)))

-import numpy as np +import math -N = int(eval(input())) -A = list(map(int, input().split())) -A = np.array(A) -count = 0 -while 1: -    x = 0 -    for i in range(N): -        if A[i] % 2 == 1: -            x = 1 -    if x == 1: -        break -    else: -        A = A / 2 -        count += 1 -print(count) +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)))