#include <bits/stdc++.h>
using namespace std;
long long a[100001];
int main() {
  int N;
  int count = 0;
  int count4 = 0;
  int tmp = 0;
  cin >> N;
  for (int i = 0; i < N; i++) {
    cin >> a[i];
    tmp = 0;
    while (a[i] % 2 == 0) {
      count++;
      tmp++;
      a[i] /= 2;
    }
    if (tmp >= 2) {
      count4++;
    }
  }
  if (count >= 2 * (N - 1) || (count4 >= N / 3 && count4 >= 1)) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
