#include <bits/stdc++.h>
using namespace std;
int b[110];
bool a[110], f[110];
int read() {
  int x = 0, f = 1;
  char ch = getchar();
  while (ch < '0' || ch > '9') {
    if (ch == '-') f = -1;
    ch = getchar();
  }
  while (ch >= '0' && ch <= '9') {
    x = x * 10 + ch - '0';
    ch = getchar();
  }
  return x * f;
}
int main() {
  int n = read();
  int m = 1;
  b[1] = 0;
  f[1] = 1;
  for (int i = 1; i <= n; i++) {
    a[i] = read() & 1;
    if (a[i]) b[++m] = i;
  }
  if (!(a[n] & 1) || !(n & 1)) {
    puts("No");
    return 0;
  }
  for (int i = 1; i <= m; i++) {
    for (int j = 1; j < i; j++) {
      if (a[b[j] + 1] && (b[i] - b[j]) & 1) {
        f[i] = f[i] | f[j];
      }
    }
  }
  if (f[m])
    puts("Yes");
  else
    puts("No");
  return 0;
}
