#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  vector<int> v(n);
  int cnt1 = 0, cnt2 = 0, cnt4 = 0;
  for (int &e : v) {
    cin >> e;
    if (e % 4 == 0)
      cnt4++;
    else if (e % 2 == 0)
      cnt2++;
    else
      cnt1++;
  }
  vector<int> chk(n);
  for (int i = 0; i < n; i += 2) {
    if (cnt1 > 0) {
      cnt1--;
      chk[i] = 1;
    }
  }
  for (int i = 1; i < n; i += 2) {
    if (cnt4 > 0) {
      cnt4--;
      chk[i] = 4;
    }
  }
  for (int i = 0; i < n; ++i) {
    if (chk[i] == 0) chk[i] = 1;
  }
  bool ok = true;
  for (int i = 0; i < n - 1; ++i) {
    int b = chk[i] * chk[i + 1];
    if (b % 4 != 0) ok = false;
  }
  puts(ok ? "Yes" : "No");
}
