let n = Scanf.scanf " %d" (+) 0
let rec f n = if n mod 2 <> 0 then 0 else 1 + f (n / 2)
let a_s = Array.init n @@ fun _ -> Scanf.scanf " %d" (+) 0
let z, t = Array.fold_left (fun (z, t) a -> if f a = 0 then z + 1, t else if f a >= 2 then z, t + 1 else z, t) (0, 0) a_s
let g b = print_endline @@ if b then "Yes" else "No"
let _ = g @@ if n = 3 then t >= 1 || z = 0 else if z <= 2 then z <= t else 2 * (z - 2) <= t - 2