#include <bits/stdc++.h>
#pragma GCC target("avx2")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
using namespace std;
const long long MOD = 1E+09 + 7;
const long long INF = 1E18;
const int MAX_N = 1E+05;
int N;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  cin >> N;
  int odd = 0;
  int four = 0;
  for (int i = 0; i < N; i++) {
    int a;
    cin >> a;
    if (a & 1) {
      odd++;
    } else if (a % 4 == 0) {
      four++;
    }
  }
  string ans;
  if (odd + four == N) {
    if (odd <= four + 1) {
      ans = "YES";
    } else {
      ans = "NO";
    }
  } else {
    if (odd <= four) {
      ans = "YES";
    } else {
      ans = "NO";
    }
  }
  cout << ans << "\n";
  return 0;
}
