#include <bits/stdc++.h>
using namespace std;
int main() {
  bool valid = true;
  int n, x, last;
  cin >> n;
  cin >> x;
  if (x % 2 == 0) {
    cout << "No\n";
    return 0;
  }
  last = 0;
  for (int i = 1; i < n; ++i) {
    cin >> x;
    if (x % 2 == 1) {
      if ((i - last) % 2 == 0) {
        last = i;
      }
    }
  }
  if (x % 2 == 0 || (n - 1 - last) % 2 == 1) {
    cout << "No\n";
  } else
    cout << "Yes\n";
  return 0;
}
