#include <bits/stdc++.h>
using namespace std;
int main(void) {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  long n;
  cin >> n;
  vector<int> two(n, 0);
  int count[3] = {0, 0, 0};
  for (int i = 0; i < n; i++) {
    long x;
    cin >> x;
    while (x % 2 == 0) {
      two[i]++;
      x /= 2;
    }
    if (two[i] > 2) two[i] = 2;
    count[two[i]]++;
  }
  if (count[0] > count[2] + 1) {
    cout << "No";
    return 0;
  }
  if (count[1] == 1 && count[2] <= count[0] - 1) {
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
