let n = Scanf.scanf " %d" (+) 0
let a_s = Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let rec f n = if n mod 2 = 1 then 0 else 1 + f (n / 2)
let _ = Array.map f a_s |> Array.fold_left min max_int |> Printf.printf "%d\n"