#include <bits/stdc++.h>
using namespace std;
using ll = long long;
const int MOD = 1e9 + 7;
const int INF = 1e9;
const ll INFll = 1e18;
int dx[4] = {0, 0, 1, -1};
int dy[4] = {1, -1, 0, 0};
int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N;
  cin >> N;
  vector<int> num(5, 0);
  for (int(i) = (0); (i) < (N); ++(i)) {
    int a, cnt = 0;
    cin >> a;
    while (a && cnt < 2) {
      if (a % 2 == 0) ++cnt;
      a /= 2;
    }
    if (cnt > 1)
      ++num[4];
    else if (cnt)
      ++num[2];
    else
      ++num[0];
  }
  if (num[2]) ++num[0];
  cout << (++num[4] >= num[0] ? "Yes" : "No") << endl;
}
