#include <bits/stdc++.h>
using namespace std;
int main() {
  int one = 0, four = 0;
  bool two = false;
  int N, x;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> x;
    if (x % 4 == 1 || x % 4 == 3) {
      one++;
    } else if (x % 4 == 0) {
      four++;
    } else {
      two = true;
    }
  }
  if (two == true) {
    if (four >= one)
      cout << "YES";
    else
      cout << "NO";
  } else {
    if (four - 1 >= one)
      cout << "YES";
    else
      cout << "NO";
  }
}
