#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(3, 0);
  int tmp, cnt = 0;
  for (int i = 0; i < n; i++) {
    cin >> tmp;
    cnt = 0;
    while (tmp > 0) {
      if (tmp % 2 == 0) {
        tmp /= 2, cnt++;
      } else {
        break;
      }
    }
    if (cnt == 1)
      a.at(1)++;
    else if (cnt >= 2)
      a.at(2)++;
    else
      a.at(0)++;
  }
  if (a.at(0) <= a.at(2)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
