let rec count2 n =
  if n mod 2 = 0 then 1 + count2 (n / 2) else 0

let () = Scanf.scanf "%d\n" @@ fun n ->
  Array.init n (fun _ -> Scanf.scanf "%d " @@ fun a -> count2 a)
  |> Array.fold_left ( + ) 0
  |> Printf.printf "%d\n"
