#include <bits/stdc++.h>
using namespace std;
signed main() {
  int n, a, sum = 0, t = 0, c;
  cin >> n;
  c = n;
  for (int i = 0; i < n; i++) {
    cin >> a;
    if (a % 2 == 0 && a != 2)
      sum++, c--;
    else if (a == 2) {
      t++;
      if (t % 2 == 0) sum++, c--;
    } else if (a == 1)
      c--;
  }
  if (sum < c || sum == 0)
    cout << "No";
  else
    cout << "Yes";
  cout << "\n";
}
