#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
double pi = 3.1415926535898;
const long long M = 1e9 + 7;
const int inf = 2e9 + 7;
const double EPS = 1e-9;
string ys = "YES\n";
string no = "NO\n";
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  int n;
  int x = 0, y;
  cin >> n;
  for (int i = 0; i < int(n); i++) {
    cin >> y;
    x += y % 4 == 0;
  }
  if (x && x >= n / 2)
    cout << ys;
  else
    cout << no;
  return 0;
}
