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