#include <bits/stdc++.h>
int main(void) {
  int N, T = 0, F = 0;
  scanf("%d", &N);
  int a[N];
  for (int i = 0; i < N; i++) {
    scanf("%d", &a[i]);
    if (a[i] % 2 == 0 && a[i] % 4 != 0) {
      T++;
    }
    if (a[i] % 4 == 0) {
      F++;
    }
  }
  if (N / 2 <= (F + T / 2)) {
    printf("YES");
  }
  if (N == T) {
    printf("YES");
  }
  return 0;
}
