#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.at(i);
  }
  vector<int> b(n);
  for (int i = 0; i < n; i++) {
    b.at(i) = 0;
    while (a.at(i) % 2 == 0) {
      a.at(i) /= 2;
      b.at(i)++;
    }
  }
  sort(b.begin(), b.end());
  int x = 0, y = 0, z = 0;
  for (int i = 0; i < n; i++) {
    if (b.at(i) == 0) {
      x++;
    } else if (b.at(i) == 1) {
      y++;
    } else if (b.at(i) >= 2) {
      z++;
    }
  }
  z -= (x % 2 ? x - 1 : x);
  if (z < 0) {
    cout << "No" << endl;
  } else if (y >= 1 && z >= 1) {
    cout << "Yes" << endl;
  } else if (y == 0) {
    cout << "Yes" << endl;
  } else if (y >= 1 && z == 0) {
    cout << "No" << endl;
  }
  return 0;
}
