#include <bits/stdc++.h>
int main(void) {
  int n = 0;
  long long s[150000] = {0};
  int s4 = 0;
  int s2 = 0;
  int i = 0;
  scanf("%d", &n);
  for (i = 0; i < n; i++) {
    scanf("%lld", &s[i]);
  }
  for (i = 0; i < n; i++) {
    if (s[i] % 4 == 0) {
      s4++;
    } else if (s[i] % 2 == 0) {
      s2++;
    }
  }
  if (s4 * 2 + s2 == n || s4 == n / 2) {
    printf("Yes\n");
  } else {
    printf("No\n");
  }
  return 0;
}
