let () =
  let n = Scanf.scanf "%d\n" (fun n -> n) in
  let as_ = Array.to_list @@ Array.init n (fun _ -> Scanf.scanf "%d " (fun a -> a)) in
  let evens = List.length @@ List.filter (fun n -> n mod 2 = 0) as_ in
  let odds = List.length @@ List.filter (fun n -> n mod 2 = 1) as_ in
  print_endline (if odds = 1 && evens = 0 || odds mod 2 = 0 then "YES" else "NO")