#include <bits/stdc++.h>
using namespace std;
long long n;
long long a[1000000];
int main() {
  long long t = 0;
  long long q = 0;
  bool d = false;
  cin >> n;
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < n; i++) {
    if (a[i] % 4 != 2) {
      t++;
      if (a[i] % 4 == 0) {
        q++;
      }
    } else {
      d = true;
    }
  }
  long long m = t - q;
  if (m > q + 1) {
    cout << "NO";
  } else {
    if (d == true and m == q + 1) {
      cout << "NO";
    } else {
      cout << "YES";
    }
  }
  return 0;
}
