#include <bits/stdc++.h>
using namespace std;
const int N = 100005;
int a[N];
int main() {
  int n;
  cin >> n;
  int t1 = 0, t2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
    if (a[i] % 4 == 0)
      t1++;
    else if (a[i] % 2 == 0)
      t2++;
  }
  int flag = 0;
  int m;
  if (t2 % 2 == 0)
    m = t2;
  else
    m = t2 - 1;
  if ((n - m) / 2 <= t1) flag = 1;
  if (flag)
    cout << "YES" << endl;
  else
    cout << "NO" << endl;
  return 0;
}
