#include <bits/stdc++.h>
using namespace std;
vector<int> myvec;
int main() {
  int n, odd = 0;
  cin >> n;
  for (int i = 0; i < n; i++) {
    int x;
    cin >> x;
    myvec.push_back(x);
    if (x % 2 == 0) odd++;
  }
  if (myvec[0] % 2 != 0 && myvec[myvec.size() - 1] % 2 != 0 && n % 2 != 0)
    return cout << "YES", 0;
  else {
    return cout << "NO", 0;
  }
  return 0;
}
