#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll LINF = 2e18;
const int INF = 1e9;
void yes() { cout << "Yes" << endl; }
void no() { cout << "No" << endl; }
void yesOrNo(bool flg) {
  if (flg)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
void showVec(string name, std::vector<ll> x) {
  cerr << name << ": ";
  for (auto v : x) {
    cerr << v << " ";
  }
  cerr << endl;
}
void solve(ll N, std::vector<ll> a) {
  bool result = false;
  do {
    bool fail = false;
    for (int i = 0; i < N - 1; i++) {
      if ((a.at(i) * a.at(i + 1)) % 4 != 0) {
        fail = true;
        break;
      }
    }
    if (!fail) {
      result = true;
      break;
    }
  } while (next_permutation((a).begin(), (a).end()));
  yesOrNo(result);
}
int main() {
  ll N;
  scanf("%lld", &N);
  std::vector<ll> a(N);
  for (int i = 0; i < N; i++) {
    scanf("%lld", &a[i]);
  }
  solve(N, std::move(a));
  return 0;
}
