#include <bits/stdc++.h>
using namespace std;
using pii = pair<int, int>;
using ll = long long;
int N;
int a[100004];
int main() {
  cin.tie(0);
  cin >> N;
  for (int i = (0); i < ((N)); i++) cin >> a[i];
  int p = 0, q = 0, r = 0;
  for (int i = (0); i < ((N)); i++) {
    if (a[i] % 2 == 1)
      p++;
    else if (a[i] % 4 == 0)
      r++;
    else
      q++;
  }
  if (q > 0) p++;
  if (p - 1 <= r)
    cout << "YES";
  else
    cout << "NO";
  cout << endl;
  return 0;
}
