#include <bits/stdc++.h>
using namespace std;
int a[100005 + 5], vis[100005 + 5];
int main() {
  int n, ans = 0, all = 0;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] % 4 == 0) {
      ans++;
      vis[i] = 1;
    }
  }
  if (ans >= n / 2) {
    cout << "YES";
  } else {
    for (int i = 1; i <= n; i++) {
      if (vis[i] == 0 && a[i] % 2 == 0) all++;
    }
    if (n - 2 * ans <= all)
      cout << "YES";
    else
      cout << "NO";
  }
}
