open System

[<EntryPoint>]
let main _argv =
    let _input = stdin.ReadLine()
    let inputNumbers = stdin.ReadLine().Split(' ') |> Array.map int |> Array.toList
    let rec divide count nums = 
        if (List.filter (fun x -> x % 2 > 0) nums).Length > 0 then count else List.map (fun x -> x / 2) nums |> divide (count + 1)
    divide 0 inputNumbers |> printf "%d"
    0
 