#include <bits/stdc++.h>
using namespace std;
const int INF = (INT_MAX / 2);
const long long LLINF = (LLONG_MAX / 2);
const double eps = 1e-5;
const double PI = M_PI;
int main() {
  int t = 0, s = 0, v = 0;
  int n;
  cin >> n;
  for (long long i = 0; i < (n); i++) {
    int a;
    cin >> a;
    if (a == 2 || a == 6) {
      t++;
    } else if (a % 4 == 0) {
      s++;
    } else {
      v++;
    }
  }
  if (t != 0) {
    v++;
  }
  if (s + 1 < v)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
