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