#include <bits/stdc++.h>
int n, n4, n2, now;
int main() {
  scanf("%d ", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%d", &now);
    if (now % 4 == 0)
      n4++;
    else if (now == 2)
      n2++;
  }
  if (n2 > 0) n2--;
  if (n4 >= (n - n2) / 2)
    printf("Yes");
  else
    printf("No");
}
