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