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