#include <bits/stdc++.h>
using namespace std;
struct Fast {
  Fast() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(20);
  }
} fast;
void yes() {
  cout << "Yes" << endl;
  exit(0);
}
void no() {
  cout << "No" << endl;
  exit(0);
}
int main() {
  long long n;
  cin >> n;
  vector<int> as(n);
  int sum2 = 0;
  for (int i = 0; i < n; i++) {
    cin >> as[i];
    if (as[i] % 2 == 0) {
      while (as[i] % 2 == 0) {
        as[i] = as[i] / 2;
        sum2++;
      }
    }
  }
  int sum4 = 0;
  if (n % 2 == 1) {
    for (long long i = 0; i < (n); i++) {
      if (as[i] % 4 == 0) {
        sum4++;
      }
    }
    if (sum4 == 0 && sum2 != n) {
      no();
    }
  }
  if (sum2 >= n) {
    yes();
  } else {
    no();
  }
}
