input_n = eval(input())

input_a = input().split()

cnt = 0

end_flg = True



while end_flg:

    for i in range(int(input_n)):



        if int(input_a[i]) % 2 == 0:

            input_a[i] = int(input_a[i])/2



        else:

            end_flg = False

            break

    if end_flg == False:break

    cnt+=1



print(cnt)
def div_cnt(input_n):

    cnt = 0

    while input_n % 2 == 0:

        input_n /= 2

        cnt += 1



    return cnt



input_n = int(eval(input()))

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

cnt = min(list(map(div_cnt,input_a)))



print(cnt)
input_n = eval(input())
input_a = input().split()
cnt = 0
end_flg = True
while end_flg:
    for i in range(int(input_n)):
        if int(input_a[i]) % 2 == 0:
            input_a[i] = int(input_a[i]) / 2
        else:
            end_flg = False
            break
    if end_flg == False:
        break
    cnt += 1
print(cnt)

def div_cnt(input_n):
    cnt = 0
    while input_n % 2 == 0:
        input_n /= 2
        cnt += 1
    return cnt


input_n = int(eval(input()))
input_a = list(map(int, input().split()))
cnt = min(list(map(div_cnt, input_a)))
print(cnt)

-input_n = eval(input()) -input_a = input().split() -cnt = 0 -end_flg = True -while end_flg: -    for i in range(int(input_n)): -        if int(input_a[i]) % 2 == 0: -            input_a[i] = int(input_a[i]) / 2 -        else: -            end_flg = False -            break -    if end_flg == False: -        break -    cnt += 1 +def div_cnt(input_n): +    cnt = 0 +    while input_n % 2 == 0: +        input_n /= 2 +        cnt += 1 +    return cnt + + +input_n = int(eval(input())) +input_a = list(map(int, input().split())) +cnt = min(list(map(div_cnt, input_a)))