#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]++;
    if (inp[i] % 2 == 0) cnt[1]++;
  }
  int group = n / 3;
  long long rem = n % 3;
  bool ok = false;
  group -= inp[2];
  if (group > 0) {
    rem += group * 3;
    if (rem <= inp[1]) ok = true;
  } else {
    ok = true;
  }
  printf("%s\n", ok ? "Yes" : "No");
  return 0;
}
