#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5 + 5;
int a[maxn];
int main() {
  int n;
  while (cin >> n) {
    bool can = false;
    for (int i = 1; i <= n; ++i) {
      cin >> a[i];
      if (i > 1) {
        if (a[i] * a[i - 1] % 4 == 0) can = true;
      }
      if (i > 2) {
        if (a[i] * a[i - 2] % 4 == 0) can = true;
      }
    }
    if (can)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
