#include <bits/stdc++.h>
int inx, n, a, b, c;
int main() {
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) {
    scanf("%d", &inx);
    if (inx % 4 == 0) {
      ++c;
      continue;
    }
    if (inx % 2 == 0) {
      ++b;
      continue;
    }
    ++a;
  }
  if (!a) {
    printf("Yes");
    return 0;
  }
  if ((c << 1) < a || (b && (c << 1) < a + 1))
    printf("No");
  else
    printf("Yes");
}
