#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const ll INF = 100100100100100;
ll two(ll a) {
  ll cnt = 0;
  while (true) {
    if (a % 2 == 0) {
      a /= 2;
      cnt++;
    } else
      break;
  }
  if (cnt >= 2)
    return 2;
  else
    return cnt;
}
int main() {
  ll N;
  cin >> N;
  vector<ll> a(N);
  ll cnt = 0;
  for (int i = 0; i < N; i++) {
    cin >> cnt;
    a[i] = two(cnt);
  }
  vector<ll> twonum(3);
  for (int i = 0; i < N; i++) twonum[a[i]]++;
  if (twonum[1] % 2 == 1) twonum[0] += 1;
  if (twonum[0] <= twonum[2] * 2)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
