#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 10;
int num1;
int num2;
int num4;
int main() {
  int n, x;
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    scanf("%d", &x);
    if (x % 4 == 0)
      num4++;
    else if (x % 2 == 0)
      num2++;
    else
      num1++;
  }
  if (num2 % 2 == 1) num1++;
  num4 -= (num1 + 1) / 2;
  if (num4 < 0)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
  return 0;
}
