#include <bits/stdc++.h>
using namespace std;
void solve() {
  int c, y;
  cin >> c;
  multiset<int> s;
  vector<int> v;
  for (int i = 0; i < c; i++) {
    cin >> y;
    s.insert(y);
  }
  for (auto h : s) {
    v.push_back(h);
  }
  do {
    bool f = true;
    for (int i = 0; i < c - 1; i++) {
      if ((v[i] * v[i + 1]) % 4 != 0) f = false;
    }
    if (f) {
      cout << "Yes";
      return;
    }
  } while (next_permutation(v.begin(), v.end()));
  cout << "No";
}
int main() {
  solve();
  return 0;
}
