#include <bits/stdc++.h>
int main() {
  int N;
  while (scanf("%d", &N) != EOF) {
    int count1 = 0, count2 = 0, count4 = 0;
    for (int i = 0; i < N; i++) {
      int x;
      scanf("%d", &x);
      if (x % 4 == 0) {
        count4++;
      } else if (x % 2 == 0 && x % 4 != 0) {
        count2++;
      } else {
        count1++;
      }
    }
    if (count2 > 0 && count1 <= count4) {
      printf("YES");
    } else if (count2 == 0 && count1 <= count4 + 1) {
      printf("YES");
    } else {
      printf("NO");
    }
  }
  return 0;
}
