#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int n;
  cin >> n;
  vector<long long int> v1;
  vector<long long int> pos;
  long long int inp;
  for (long long int i = 0; i < n; i++) {
    cin >> inp;
    if (inp % 2 != 0) {
      pos.push_back(i);
    }
    v1.push_back(inp);
  }
  if (v1[0] % 2 == 0 || v1[v1.size() - 1] % 2 == 0) {
    cout << "No" << endl;
  } else {
    if ((pos[pos.size() - 1] - pos[0]) % 2 == 0) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}
