#include <bits/stdc++.h>
using namespace std;
const long long INF = 1LL << 60;
const long long MOD = 1000000000 + 7;
int main() {
  int n;
  cin >> n;
  int num_4 = 0;
  int num_2 = 0;
  for (int i = 0; i < (int)(n); i++) {
    unsigned long long a;
    cin >> a;
    if (a > 4) {
      if (a % 4 == 0) {
        num_4++;
      } else if (a % 2 == 0) {
        num_2++;
      }
    } else if (a == 2) {
      num_2++;
    } else if (a == 4) {
      num_4++;
    }
  }
  if (num_2 == 1) num_2 = 0;
  unsigned long long tot = num_4 * 3 + num_2;
  if (tot >= n)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
