#include <bits/stdc++.h>
using namespace std;
long long a[100007];
int main() {
  int N;
  cin >> N;
  for (int i = 1; i <= N; i++) cin >> a[i];
  bool result = false;
  long long multi = a[1] % 4;
  int cnt = 0;
  if (a[1] >= 4) cnt++;
  if (N % 2 == 0) {
    for (int i = 1; i < N; i++) {
      multi = (multi * a[i + 1]) % 4;
      if (a[i + 1] >= 4) cnt++;
    }
    if (cnt >= N / 2 && multi == 0) result = true;
  } else {
    for (int i = 1; i < N; i++) {
      multi = (multi * a[i + 1]) % 4;
      if (a[i + 1] >= 4) cnt++;
    }
    if (cnt >= N / 2 && multi == 0) result = true;
  }
  if (result) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}
