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