#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  bool ans = false;
  for (int i = 0; i < n; i++) {
    int a;
    cin >> a;
    if (a % 2 == 0) {
      while (a % 2 == 0) {
        a /= 2;
      }
      if (a != 1) {
        ans = true;
      }
    } else if (a == 1) {
    } else {
      ans = true;
      break;
    }
  }
  if (ans)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
