#include <bits/stdc++.h>
using namespace std;
struct Fast {
  Fast() {
    cin.tie(0);
    ios::sync_with_stdio(0);
  }
} fast;
using intpair = pair<int, int>;
signed main() {
  int n;
  cin >> n;
  vector<int> a(n);
  int two[] = {0, 0, 0};
  for (int i = 0; i < (int)(n); i++) {
    int a;
    cin >> a;
    if (a % 2 == 1) {
      two[0]++;
    } else {
      a /= 2;
      two[!(a % 2) + 1]++;
    }
  }
  int bad_adjacent = two[0] + (two[0] && two[1]);
  cout << (bad_adjacent > 2 * two[2] ? "No" : "Yes") << endl;
}
