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