#include <bits/stdc++.h>
using namespace std;
int n, m;
int a[100005];
bool per(int *p) {
  bool o = true;
  for (int i = 0; i < n - 1; i++)
    if ((a[i] * a[i + 1]) % 4 != 0) o = false;
  return o;
}
int main() {
  int i;
  cin >> n;
  for (i = 0; i < n; i++) cin >> a[i];
  do {
    if (per(a)) {
      cout << "Yes" << endl;
      return 0;
    }
  } while (next_permutation(a, a + n));
  cout << "No" << endl;
  return 0;
}
