#include <bits/stdc++.h>
using namespace std;
void res_pernutation(vector<int> r) {
  int len = r.size() - 1, i;
  for (i = len; i >= 1; i--) {
    if (r[i] * r[i - 1] % 4 != 0) {
      break;
    }
    if (i == 1) {
      printf("Yes\n");
      return;
    }
  }
  while (next_permutation(r.begin(), r.end())) {
    for (i = len; i >= 1; i--) {
      if (r[i] * r[i - 1] % 4 != 0) {
        break;
      }
      if (i == 1) {
        printf("Yes\n");
        return;
      }
    }
  }
  printf("No\n");
  return;
}
int main() {
  int M, i = 0;
  scanf("%d", &M);
  vector<int> r(M);
  while (i < M) {
    scanf("%d", &r[i]);
    i++;
  }
  res_pernutation(r);
}
