#include <bits/stdc++.h>
using namespace std;
int twoCheck(int n) {
  int cnt = 0;
  while (n % 2 == 0) {
    n /= 2;
    cnt++;
  }
  return min(2, cnt);
}
signed main() {
  int n, inp, zero = 0, four = 0;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < n; ++i) {
    cin >> inp;
    if (twoCheck(inp) == 0) zero++;
    if (twoCheck(inp) == 2) four++;
  }
  if (zero > four)
    cout << "No" << endl;
  else
    cout << "Yes" << endl;
}
