local N = io.read("*n")
local A = {}
for i = 1, N do
   A[i] = io.read("*n")
end

local counter = 0
while true do
    for i = 1, N do
        if A[i]%2 == 0 then
            A[i] = A[i]/2
        else
            break
        end 
    end
    counter = counter + 1
end

print(counter)