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