let scanInt _ = stdin.ReadLine() |> int
let scanInts _ = stdin.ReadLine().Split() |> Array.map int

let rec p2count cnt n =
  match n % 2 with
    | 1 -> cnt
    | _ -> p2count (cnt+1) (n/2)

scanInt 0
|> ignore

scanInts 0
|> Seq.map (p2count 0)
|> Seq.sum
|> printfn "%d"