#include <bits/stdc++.h>
using namespace std;
int dx8[8] = {1, -1, 0, 0, 1, 1, -1, -1};
int dy8[8] = {0, 0, 1, -1, 1, -1, 1, -1};
void file() {}
void fast() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int a[120][120];
int main() {
  int n;
  cin >> n;
  int c1 = 0, c2 = 0;
  set<int> s;
  vector<int> v(n);
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    v[i] = a;
    if (a == 2) c2++;
    if (a % 4 == 0) c1++;
  }
  bool ok = 0;
  int ext = 0;
  if (c2 >= 1) {
    for (int i = 0; i < n; i++) {
      if (v[i] % 4 != 0 && (v[i] * 2) % 4 == 0) ext++;
    }
    if (ext == 1) ext--;
  }
  if (c1 + ext >= (n / 2))
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
}
