#include <bits/stdc++.h>
using namespace std;
template <class T>
inline void chmax(T &a, T b) {
  if (a < b) {
    a = b;
  }
}
template <class T>
inline void chmin(T &a, T b) {
  if (a > b) {
    a = b;
  }
}
template <class T>
inline T gcd(T x, T y) {
  if (y == 0) {
    return x;
  } else if (x == 0) {
    return y;
  }
  return gcd(y, x % y);
}
template <class T>
inline T lcm(T x, T y) {
  return (x * y) / gcd(x, y);
}
template <class T>
inline void print_vector(vector<T> vec) {
  for (int i = 0; i < vec.size(); i++) {
    cout << vec[i] << " ";
  }
  cout << endl;
}
const long long MOD = 1e9 + 7;
const long long LLINF = 1LL << 60;
const int INF = 1 << 30;
int main(void) {
  int N;
  cin >> N;
  vector<int> a(N);
  for (int i = 0; i < N; i++) cin >> a[i];
  vector<int> num_of_2(N);
  for (int i = 0; i < N; i++) {
    while (a[i] % 2 == 0) {
      num_of_2[i]++;
      a[i] /= 2;
    }
  }
  int greater_2 = 0;
  int num_of_1 = 0;
  int num_of_0 = 0;
  for (int i = 0; i < N; i++) {
    if (num_of_2[i] >= 2) {
      greater_2++;
    } else if (num_of_2[i] == 1) {
      num_of_1++;
    } else if (num_of_2[i] == 0) {
      num_of_0++;
    }
  }
  if ((num_of_0 > greater_2 and num_of_0 + greater_2 != N) or greater_2 == 0) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}
