#include <bits/stdc++.h>
using namespace std;
int a[100005];
int main() {
  int n;
  cin >> n;
  int i;
  for (i = 0; i < n; i++) cin >> a[i];
  if (a[0] % 2 != 0 && a[n - 1] % 2 != 0 && n % 2 != 0)
    printf("YES");
  else
    printf("NO");
  return 0;
}
