#include <bits/stdc++.h>
using namespace std;
int A[1 << 20];
int N;
int main() {
  cin >> N;
  for (int i = 0; i < N; i++) cin >> A[i];
  if (N % 2 == 0) {
    cout << "NO" << endl;
    return 0;
  }
  if (A[0] % 2 != 0 and A[N - 1] % 2 != 0) {
    cout << "YES" << endl;
    return 0;
  }
  cout << "NO" << endl;
  return 0;
}
