#include <bits/stdc++.h>
using namespace std;
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx")
using llong = long long;
using ld = long double;
using ii = pair<int, int>;
using ull = unsigned long long;
using pll = pair<llong, llong>;
using vi = vector<int>;
const llong over999 = 1e14;
const ld eps = 1e-9;
const int base = 1000 * 1000;
const ld Pi = acos(-1);
const llong md = 1e9 + 7;
const llong ya = 0;
llong n, x, cnt;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> x;
    if (x && x % 4 == 0) cnt++;
  }
  if (cnt >= n / 2)
    cout << "YES";
  else
    cout << "NO";
  cout << "\n";
  return 0;
}
