#include <bits/stdc++.h>
using namespace std;
int main(int argc, char* argv[]) {
  int N;
  int a = 0, b = 0, c = 0;
  scanf("%d", &N);
  int tmp;
  for (int i = 0; i < N; i++) {
    scanf("%d", &tmp);
    if (tmp % 4 == 0)
      a++;
    else if (tmp % 2 == 0)
      b++;
    else
      c++;
  }
  if (a == 0) {
    if (b == N)
      printf("Yes");
    else
      printf("NO");
  } else {
    if (c <= a)
      printf("YES");
    else if (c == a + 1 && b == 0)
      printf("YES");
    else
      printf("NO");
  }
  return 0;
}
