open System


[<EntryPoint>]
let main argv =
    let rec f n = if n%2<>0 then 0 else (f (n/2))+1
    let n =stdin.ReadLine()
    stdin.ReadLine().Split()
    |>Array.map int
    |>Seq.sumBy(fun c -> f c)
    |>stdout.WriteLine
    0