(* O(n) *)
let n = Scanf.scanf " %d" @@ (+) 0
let a_s = Array.init n @@ fun _ -> Scanf.scanf " %d" @@ (+) 0
let ps = Array.make 2 0
let _ =
  Array.iter (fun a -> ps.(a mod 2) <- ps.(a mod 2) + 1) a_s;
  if ps.(1) >= 2 then (ps.(0) <- ps.(0) + 1; ps.(1) <- ps.(1) mod 2);
  if ps.(0) >= 1 then ps.(0) <- 1;
  print_endline @@ if ps.(0) + ps.(1) = 1 then "YES" else "NO"