module Main

let n = stdin.ReadLine() |> int
let a = stdin.ReadLine().Split(' ') |> Array.map int64
let mutable count = 0

let rec times (a : int64 []) =
    if Array.sum a % 2L = 0L then
        count <- count + 1
        Array.map (fun x -> x / 2L) a |> times
    else a

times a
stdout.WriteLine count
