#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a = 0, b = 0, c[n];
  for (int i = 0; i < n; i++) {
    cin >> c[i];
    if (c[i] % 4 == 0) {
      a += 1;
    } else if (c[i] % 4 == 2) {
      b += 1;
    }
  }
  if (b == 0) {
    if ((a + 1) >= n - a) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  } else {
    if (a >= n - (a + b)) {
      cout << "YES";
    } else {
      cout << "NO";
    }
  }
}
