function Main(input) {
 var a=0;
 for(i=0;i<input[0];i++){
  a+=Number(input[i*2]);
 }
 if(a%2){
  console.log("NO");
 }
 else {
  console.log("YES");
 }
}
 
Main(require("fs").readFileSync("/dev/stdin", "utf8"));
