#include <bits/stdc++.h>
#pragma GCC optimize("O3")
using namespace std;
template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
const long long mod = 1e9 + 7;
int main() {
  long long n;
  cin >> n;
  long long ans = 0;
  for (long long i = 0; i < (n); i++) {
    long long a;
    cin >> a;
    long long cnt = 0;
    while (a % 2 == 0) {
      cnt++;
      a /= 2;
    }
    ans += cnt;
  }
  if (ans >= n)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
  return 0;
}
