#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> data(n);
  for (auto& i : data) {
    cin >> i;
  }
  int numOdd = 0;
  int numEven = 0;
  int numMultiple4 = 0;
  for (const auto& i : data) {
    if (i % 2 == 0)
      numEven++;
    else
      numOdd++;
    if (i % 4 == 0) numMultiple4++;
  }
  if (numMultiple4 >= (numOdd - data.size() % 2)) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}
