#include <bits/stdc++.h>
using namespace std;
vector<int> x;
long long c, a, b, d, f, n;
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> b;
    x.push_back(b);
  }
  for (int i = 0; i < n - 1; i++) {
    if ((x[i] * x[i + 1]) % 4 != 0) {
      c++;
    }
  }
  if (c == 0) {
    cout << "Yes";
    return 0;
  }
  c = 0;
  sort(x.begin(), x.end());
  do {
    for (int i = 0; i < n - 1; i++) {
      if ((x[i] * x[i + 1]) % 4 != 0) {
        c++;
      }
    }
    if (c == 0) {
      cout << "Yes";
      return 0;
    }
    c = 0;
  } while (next_permutation(x.begin(), x.end()));
  cout << "No";
}
