#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> a(n);
  for (int i = 0; i < (n); i++) cin >> a[i];
  int sum2 = 0;
  int sum4 = 0;
  for (int i = 0; i < n; i++) {
    int cnt2 = 0;
    int a2 = a[i];
    while (a2 % 2 == 0) {
      a2 /= 2;
      cnt2++;
    }
    sum2 += cnt2;
    int cnt4 = 0;
    while (a[i] % 4 == 0) {
      a[i] /= 4;
      cnt4++;
    }
    sum4 += cnt4;
  }
  if (n % 2 == 0) {
    if (sum2 >= n)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  } else {
    if (sum2 >= n || sum4 >= (n - 1) / 2)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
