#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int cnt(ll n) {
  int c = 0;
  while (true) {
    if (n < 1) break;
    n = n / 10;
    c++;
  }
  return c;
}
const char alphabet[26] = {'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i',
                           'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r',
                           's', 't', 'u', 'v', 'w', 'x', 'y', 'z'};
const ll mod = 1e9 + 7;
const ll MAX1E5 = 100000;
const ll MAX1E10 = 10000000000;
const ll MAX1E15 = 1000000000000000;
int main() {
  int N, a = 0, b = 0, c = 0;
  ll x, y, sum = 0, allSum, tmp;
  string ans = "No";
  cin >> N;
  vector<int> A;
  for (int i = 0; i < (int)N; ++i) {
    cin >> x;
    if (x / 2 > 1) {
      a++;
    } else if (x % 2 == 0 && x / 2 == 1) {
      b++;
    } else {
      c++;
    }
    cout << a << b << c << endl;
  }
  if (b == 1)
    c++;
  else if (b % 2 != 0)
    c += b % 2;
  if (b == 0) a++;
  if (a <= c) ans = "Yes";
  cout << ans << endl;
  return 0;
}
