#include <bits/stdc++.h>
int main(void) {
  int n, i, c2, c4;
  scanf("%d", &n);
  int val[n];
  for (i = 0, c2 = 0, c4 = 0; i < n; ++i) {
    scanf("%d", &val[i]);
    if (!(val[i] % 4))
      ++c4;
    else if (!(val[i] % 2))
      ++c2;
  }
  int ce = n - c2 - c4;
  if (c4 >= (n / 2) || c4 + c2 >= n || c4 >= ce) {
    printf("YES");
    return 0;
  }
  printf("NO");
  return 0;
}
