#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  int s = 0, t = 0;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    int tmp = 0;
    while (a % 2 == 0) a /= 2, tmp++;
    if (tmp == 0) s++;
    if (tmp >= 2) t++;
  }
  cout << (t >= s - 1 ? "Yes" : "No") << endl;
}
