let n = stdin.ReadLine() |> int
let a = stdin.ReadLine().Split() |> Array.map int

let countElement2 x =
    let rec countElement2 x i =
        match x%2 with
        |0 -> countElement2 (x/2) (i+1)
        |_ -> i
    countElement2 x 0

a |> Seq.map countElement2 |> Seq.sum |> stdout.WriteLine 
