#include <bits/stdc++.h>
const int maxn = 100000;
int main() {
  int N, count1 = 0, count2 = 0;
  int a[100010];
  int i;
  scanf("%d", &N);
  for (i = 0; i < N; ++i) {
    scanf("%d", &a[i]);
  }
  for (i = 0; i < N; ++i) {
    if (a[i] % 4 == 0) {
      count1++;
    } else if (a[i] % 2 == 0 && a[i] % 4 != 0) {
      count2++;
    }
  }
  if (count1 == (N - count1) || (N - count1 - 1) == count1) {
    printf("YES");
  } else {
    printf("NO");
  }
  return 0;
}
