if __name__ == '__main__':

    n = eval(input())

    li = list(map(int, input().split(' ')))

    flag, cnt = True, 0



    while flag:

        for list_index in range(len(li)):

            value = li[list_index]

            if value % 2 == 0:

                li[list_index] /= 2

            else:

                flag = False

                break



        if flag:

            cnt += 1



    print(cnt)

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)))
if __name__ == "__main__":
    n = eval(input())
    li = list(map(int, input().split(" ")))
    flag, cnt = True, 0
    while flag:
        for list_index in range(len(li)):
            value = li[list_index]
            if value % 2 == 0:
                li[list_index] /= 2
            else:
                flag = False
                break
        if flag:
            cnt += 1
    print(cnt)

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)))

-if __name__ == "__main__": -    n = eval(input()) -    li = list(map(int, input().split(" "))) -    flag, cnt = True, 0 -    while flag: -        for list_index in range(len(li)): -            value = li[list_index] -            if value % 2 == 0: -                li[list_index] /= 2 -            else: -                flag = False -                break -        if flag: -            cnt += 1 -    print(cnt) +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)))