#include <bits/stdc++.h>
using namespace std;
int N, a, b = 0, c = 0;
vector<int> bff;
void ch() {
  bool fl = false;
  for (int i = 0; i < bff.size(); i++) {
    if (bff[i] >= 2 && bff[i] % 2 == 0) {
      if (fl) {
        b++;
        c -= 2;
        fl = false;
      } else {
        fl = true;
      }
    }
  }
}
int main() {
  scanf("%d", &N);
  for (int i = 0; i < N; i++) {
    scanf("%d", &a);
    if (a >= 4 && a % 4 == 0)
      b++;
    else {
      bff.push_back(a);
      c++;
    }
  }
  ch();
  if (abs(b - c) < 2)
    puts("Yes");
  else
    puts("No");
}
