#include <bits/stdc++.h>
using namespace std;
int n, i, o = 0;
int a[100001];
int main() {
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  if (n % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  if (a[0] % 2 == 0 || a[n - 1] % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  cout << "YES" << endl;
  return 0;
}
