#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int N;
  cin >> N;
  vector<ll> a(N);
  for (int i = 0, i_len = (N); i < i_len; ++i) cin >> a[i];
  int cnt_four = 0;
  int cnt_two = 0;
  for (int j = 0; j < N; ++j) {
    if (a.at(j) % 4 == 0) {
      cnt_four++;
    }
    if (a.at(j) % 2 == 0 && a.at(j) % 4 != 0) {
      cnt_two++;
    }
  }
  if (cnt_four >= ceil((double)N / 3) && N >= 3) {
    if (cnt_two >= (ceil((double)N / 3) - 1) * 2) {
      cout << "Yes" << endl;
    } else {
      cout << "No" << endl;
    }
  } else if (cnt_four > 0 && N < 3) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}
