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