#include <bits/stdc++.h>
using namespace std;
int n;
int cnt;
int main() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    long long x;
    cin >> x;
    if (x % 4 != 0 || x < 4) cnt++;
  }
  if (n == 2 && cnt == 2) {
    cout << "NO";
    return 0;
  }
  if (cnt < (n / 2))
    cout << "NO";
  else
    cout << "YES";
}
