#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int cnt[3] = {0, 0, 0};
  for (int i = 0; i < n; ++i) {
    int a;
    cin >> a;
    int j;
    for (j = 0; j < 3; ++j) {
      if (a % 2) break;
      a /= 2;
    }
    ++cnt[min(2, j)];
  }
  cout << ((cnt[0] <= cnt[2]) || (cnt[0] < cnt[2] && !cnt[1]) ? "Yes" : "No")
       << endl;
  return 0;
}
