#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned int n;
  long a[100000];
  int b1 = 0, b2 = 0, b4 = 0;
  double result;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n; i++) {
    switch (a[i] / 2) {
      case (0):
        b1++;
        break;
      case (1):
        b2++;
      default:
        b4++;
        break;
    }
  }
  if ((b2 == 0 && b1 <= b4 + 1) || (b1 <= b4))
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
