let n = int (stdin.ReadLine())
let a = stdin.ReadLine().Split() |> Array.map int
let count = ref 0
for i in 0..n - 1 do
    while a.[i] % 2 = 0 do
        a.[i] <- a.[i] / 2
        count := !count + 1
printfn "%d" !count