#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  std::cin.tie(nullptr);
  std::ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> break_num(N);
  int sum = 0;
  for (int i = 0; i < N; i++) {
    int tmp;
    cin >> tmp;
    while (tmp % 2 == 0) {
      tmp /= 2;
      break_num[i]++;
    }
    sum += break_num[i];
  }
  if (sum >= N)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}
