#include <bits/stdc++.h>
using namespace std;
int main() {
  unsigned long long int a, b, c = 0, d = 0;
  cin >> a;
  int ar[a];
  for (int i = 0; i < a; i++) {
    cin >> ar[i];
    if (ar[i] % 4 == 0) {
      c++;
    }
    if (ar[i] % 4 != 0) {
      d++;
    }
  }
  if (c * 2 == d) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}
