#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int n;
bool check() {
  bool ret = true;
  for (int i = 0; i < n - 1; i++)
    if ((v[i] * v[i + 1]) % 4 != 0) return false;
  return true;
}
int main(void) {
  scanf("%d", &n);
  for (int i = 0; i < n; i++) {
    int x;
    scanf("%d", &x);
    v.push_back(x);
  }
  sort(v.begin(), v.end());
  do {
    if (check()) {
      printf("Yes\n");
      return false;
    }
  } while (next_permutation(v.begin(), v.end()));
  printf("No\n");
  return false;
}
