#include <bits/stdc++.h>
using namespace std;
constexpr int MOD = 1000000007;
using long long = long long;
template <class T>
inline bool chmin(T &a, T b) {
  if (a > b) {
    a = b;
    return true;
  }
  return false;
}
template <class T>
inline bool chmax(T &a, T b) {
  if (a < b) {
    a = b;
    return true;
  }
  return false;
}
void print(const std::vector<long long> &v) {
  std::for_each(v.begin(), v.end(), [](long long x) { std::cout << x << " "; });
  std::cout << std::endl;
}
int main() {
  long long N;
  cin >> N;
  map<int, int> m;
  vector<long long> a(N);
  for (long long i = 0; i < (long long)N; i++) {
    cin >> a[i];
  }
  for (long long i = 0; i < (long long)N; i++) {
    long long cnt = 0;
    while (a[i] % 2 == 0) {
      a[i] /= 2;
      cnt++;
    }
    a[i] = cnt;
    if (a[i] > 2) {
      a[i] = 2;
    }
    m[a[i]]++;
  }
  if (m[0] > m[2] * 2 or (m[0] == m[2] * 2 and m[1] % 2 == 1)) {
    cout << "No" << endl;
    return 0;
  } else {
    cout << "Yes" << endl;
    return 0;
  }
}
