#include <bits/stdc++.h>
using namespace std;
using vi = vector<int64_t>;
using vvi = vector<vi>;
int main(int argc, const char* argv[]) {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int64_t n;
  cin >> n;
  vi a(n);
  for (int64_t i = 0; i < (int64_t)(n); i++) cin >> a.at(i);
  vi odds, twos, fours;
  for (int64_t i = 0; i < (int64_t)(n); i++) {
    if (a.at(i) % 4 == 0) {
      fours.push_back(a.at(i));
    } else if (a.at(i) % 2 == 0) {
      twos.push_back(a.at(i));
    } else {
      odds.push_back(a.at(i));
    }
  }
  if (fours.size() < odds.size() && twos.size() > 0) {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}
