#include <bits/stdc++.h>
using namespace std;
int dev2(int kk) {
  int m = 0;
  int k = kk;
  while (k % 2 == 0) {
    k = k / 2;
    m++;
  }
  return m;
}
int main() {
  int n;
  cin >> n;
  int a[n];
  int b[3] = {0, 0, 0};
  for (int j = 0; j < n; j++) {
    cin >> a[j];
    int l = dev2(a[j]);
    cout << l << endl;
    if (l == 0) {
      b[0]++;
    } else if (l == 1) {
      b[1]++;
    } else {
      b[2]++;
    }
  }
  if ((b[0] <= b[2]) || ((b[0] == (b[2] + 1)) && (b[1] == 0))) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
