#include <bits/stdc++.h>
using namespace std;
int main () {
  int n, o = 0;
  cin >> n;
  while (n--) {
    int x;
    cin >> x;
    if (x & 1)
      o ^= 1;
  }
  if (o) cout << "NO";
  else cout << "YES";
}