#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<long long> a(n);
  for (int i = 0; i < n; i++) cin >> a[i];
  bool ok = true;
  if (n % 2 == 0) {
    int cnt2 = 0, cnt4 = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] % 2 == 0) cnt2++;
      if (a[i] % 4 == 0) cnt4++;
    }
    if (cnt2 < n && cnt4 < n / 2) ok = false;
    if (n - cnt4 * 2 <= cnt2) ok = true;
  } else if (n % 2 == 1) {
    int cnt2 = 0, cnt4 = 0;
    for (int i = 0; i < n; i++) {
      if (a[i] % 2 == 0) cnt2++;
      if (a[i] % 4 == 0) cnt4++;
    }
    if (cnt2 < n && cnt4 < (n - 1) / 2) ok = false;
    if (n - cnt4 * 2 <= cnt2) ok = true;
  }
  if (ok)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
