#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  int a[100005];
  int ok = 0;
  scanf("%d", &n);
  int sum1 = 0, sum2 = 0, sum4 = 0;
  for (int i = 0; i < n; i++) {
    scanf("%d", &a[i]);
  }
  for (int i = 0; i < n; i++) {
    if (a[i] % 4 == 0) {
      sum4++;
    }
    if (a[i] % 2 == 0 && a[i] % 4 != 0) {
      sum2++;
    }
    if (a[i] % 2 != 0 && a[i] % 4 != 0) {
      sum1++;
    }
  }
  if (sum4 == n) {
    ok = 1;
  }
  if (sum1 + 1 <= sum4) {
    ok = 1;
  }
  if (sum2 != 0) {
    sum1++;
  }
  if (sum4 >= sum1 - 1) {
    ok = 1;
  }
  if (ok == 1) {
    printf("YES\n");
  } else {
    printf("NO\n");
  }
  return 0;
}
