#include <bits/stdc++.h>
using namespace std;
template <class T>
T to_T(const string &s) {
  istringstream is(s);
  T res;
  is >> res;
  return res;
}
template <class T>
string to_s(const T &a) {
  ostringstream os;
  os << a;
  return os.str();
}
void solve(long long N, vector<long long> a) {
  int L[3] = {};
  for (int i = (0); i < (N); ++i) {
    int b = 0;
    if (a[i] % 2 == 0) {
      b = a[i] / 2;
      b = min(b, 2);
    }
    L[b]++;
  }
  int buf = 0;
  for (int j = (0); j < (3); ++j)
    if (L[j] > 0) {
      L[j]--;
      buf = j;
      break;
    }
  for (int i = (0); i < (N - 1); ++i) {
    bool flag = false;
    for (int j = (0); j < (3); ++j)
      if (L[j] > 0) {
        if (buf + j >= 2) {
          L[j]--;
          buf = j;
          flag = true;
          break;
        }
      }
    if (!flag) {
      cout << "No" << endl;
      return;
    }
  }
  cout << "Yes" << endl;
}
int main() {
  ios::sync_with_stdio(false);
  long long N;
  cin >> N;
  vector<long long> a(N - 1 + 1);
  for (int i = 0; i <= N - 1; i++) {
    cin >> a[i];
  }
  solve(N, a);
  return 0;
}
