#include <bits/stdc++.h>
using namespace std;
struct cww {
  cww() {
    ios::sync_with_stdio(false);
    cin.tie(0);
  }
} star;
const long long INF = numeric_limits<long long>::max();
int main() {
  int N;
  cin >> N;
  int tmp = 0;
  int cnt4 = 0, cnt2 = 0, cntodd = 0;
  for (int i = 0; i < (N); i++) {
    cin >> tmp;
    if (tmp % 2 != 0) {
      cntodd++;
    } else if (tmp % 4 != 0) {
      cnt2++;
    } else {
      cnt4++;
    }
  }
  if (N % 2 == 0) {
    if (cntodd > N / 2) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (N % 2 != 0) {
    if (cntodd > N / 2 + 2) {
      cout << "NO" << endl;
      return 0;
    }
  }
  if (cnt4 >= cntodd) {
    cout << "YES" << endl;
    return 0;
  }
  if (cnt4 + 1 < cntodd) {
    cout << "NO" << endl;
    return 0;
  }
  if (cnt4 + 1 == cntodd) {
    if (cnt2 != 0) {
      cout << "NO" << endl;
    } else {
      cout << "YES" << endl;
    }
  }
  return 0;
}
