#include <bits/stdc++.h>
using namespace std;
int main() {
  int N;
  cin >> N;
  vector<unsigned long long> a(N);
  for (int i = 0; i < N; i++) {
    cin >> a[i];
  }
  do {
    bool ok = true;
    for (int i = 0; i < N - 1; i++) {
      if (a[i] * a[i + 1] % 4 != 0) {
        ok = false;
        break;
      }
    }
    if (ok) {
      cout << "Yes" << endl;
      return 0;
    }
  } while (next_permutation(a.begin(), a.end()));
  cout << "No" << endl;
  return 0;
};
