#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int p[n];
  int ch = 0, yek = 0, doo = 0, se = 0;
  for (int i = 0; i < n; i++) {
    cin >> p[i];
    if (p[i] % 4 == 0) {
      ch++;
    } else if (p[i] % 4 == 1) {
      yek++;
    } else if (p[i] % 4 == 2) {
      doo++;
    } else {
      se++;
    }
  }
  if (yek + se <= ch) {
    cout << "YES";
  } else if (yek + se == ch + 1 && doo == 0) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
