#include <bits/stdc++.h>
using namespace std;
int c[9999999];
int main() {
  long long a, b, w = 0, i, q = 1;
  cin >> a;
  for (i = 0; i < a; ++i) {
    cin >> c[i];
    if (c[i] % 4 == 0) {
      w++;
    }
    if (c[i] % 4 == 0 && c[i] == 8 && c[i - 1] == 2) {
      w++;
    }
  }
  if (w >= (a / 2)) {
    cout << "Yes";
  } else {
    cout << "No";
  }
  return 0;
}
