let n = int (stdin.ReadLine())
let a = stdin.ReadLine().Split() |> Array.map int
let mutable cou = 0
Array.map (fun x -> 
    while x % 2 = 0
        x <- x / 2
        cou <- cou + 1) a
printfn "%d" cou
