#include <bits/stdc++.h>
using namespace std;
int main(void) {
  int N;
  int four = 0;
  int two = 0;
  for (int i = 0; i < N; ++i) {
    int t;
    cin >> t;
    if (t % 2 == 0) {
      if (t % 4 == 0)
        four++;
      else
        two++;
    }
  }
  if ((N - two) < 2 * four)
    cout << "YES\n";
  else
    cout << "NO\n";
  return 0;
}
