# ABC081-B

read
read -a a

success=1
m=0
while ((success)); do
    : $((++m))
    for ai in "${a[@]}"; do
        if (( ai % (2 ** m) != 0 )); then
            success=0
            break
        fi
    done
done
echo $((m - 1))
