#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int a[n];
  int c = 0, b = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 2 == 0 and a[i] % 4 != 0) b++;
    if (a[i] % 4 == 0) c++;
  }
  if (b > 1) {
    n -= b + 1;
    if (c >= n / 2)
      cout << "YES";
    else
      cout << "NO";
  }
  if (b < 2) {
    if (c >= n / 2)
      cout << "YES";
    else
      cout << "NO";
  }
}
