#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt1 = 0, cnt2 = 0, cnt = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a % 4 == 0 && a > 4) {
      cnt1++;
    } else if (a == 4) {
      cnt2++;
    }
    if (a == 1) {
      cnt++;
    }
  }
  if ((cnt + 1) / 2 > cnt1) {
    cout << "No" << endl;
    return 0;
  }
  n -= ((cnt1 + cnt2) * 3);
  if (n <= 0) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
