#include <bits/stdc++.h>
using namespace std;
int dx8[8] = {1, -1, 0, 0, 1, 1, -1, -1};
int dy8[8] = {0, 0, 1, -1, 1, -1, 1, -1};
void file() {}
void fast() {
  std::ios_base::sync_with_stdio(0);
  cin.tie(NULL);
  cout.tie(NULL);
}
int a[120][120];
int main() {
  int n;
  cin >> n;
  int c1 = 0, c2 = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a % 4 == 0)
      c1++;
    else
      c2++;
  }
  bool ok = 0;
  while (c2 != 0) {
    if (c1 == 0 && c2 > 0) {
      cout << "NO" << endl;
      return 0;
    }
    c1--;
    c2 -= 2;
  }
  cout << "YES" << endl;
}
