#include <bits/stdc++.h>
using namespace std;
int main() {
  int a[1000], i, cnt = 0, n, ct = 0;
  cin >> n;
  for (i = 1; i < n; i++) {
    cin >> a[i];
    if (i == 1 && (a[i] * a[i + 1]) % 4 == 0) {
      cnt++;
    }
    if (i != 1 && (a[i] * a[i + 1]) % 4 == 0) {
      cnt++;
    }
  }
  if (cnt > 0) {
    cout << "Yes";
  } else
    cout << "No";
}
