#include <bits/stdc++.h>
using namespace std;
const int VX[] = {0, 1, 0, -1};
const int VY[] = {1, 0, -1, 0};
const long MOD = 1000000007;
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = (0); i < (N); i++) cin >> a[i];
  int can_div4 = 0, two = 0;
  for (int i = (0); i < (N); i++) {
    if (a[i] == 2)
      two++;
    else if (a[i] % 4 == 0)
      can_div4++;
  }
  int x = N - can_div4 - ((two / 2) * 2);
  if (abs(x - (can_div4 + (two / 2))) <= 1) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
  return 0;
}
