#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  scanf("%lld", &n);
  long long inp[n];
  for (int i = 0; i < n; i++) scanf("%lld", &inp[i]);
  long long cnt[3] = {0};
  for (int i = 0; i < n; i++) {
    if (inp[i] % 4 == 0)
      cnt[2]++;
    else if (inp[i] % 2 == 0)
      cnt[1]++;
  }
  int group = n / 3;
  long long rem = n % 3;
  bool ok = false;
  if (cnt[2] - group >= 0) {
    if (rem > 0 && (cnt[2] - group) > 0) ok = true;
    if (rem == 0) ok = true;
  }
  if (group - cnt[2] > 0 || rem > 0) {
    rem += (group - cnt[2]) * 3;
    cnt[2] = 0;
    if (rem == 1 && (cnt[2] + cnt[1]) > 1)
      ok = true;
    else if (rem > 1 && rem <= (cnt[1] + cnt[2]))
      ok = true;
  } else {
    ok = true;
  }
  printf("%s\n", ok ? "Yes" : "No");
  return 0;
}
