#include <bits/stdc++.h>
using namespace std;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const int INF = 1 << 29;
const long long INFL = 1e18;
const int MOD = 1000000007;
const int MAX = 210000;
const int MAX_NUM = 999999999;
void solve() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  do {
    bool flg = true;
    for (int i = 1; i < n; ++i) {
      if ((a[i - 1] * a[i]) % 4 != 0) {
        flg = false;
        break;
      }
    }
    if (flg) {
      cout << "Yes" << endl;
      return;
    }
  } while (next_permutation((a).begin(), (a).end()));
  cout << "No" << endl;
  return;
}
int main() {
  solve();
  return 0;
}
