#include <bits/stdc++.h>
using namespace std;
vector<int> v;
int main() {
  int a, b, cnt;
  cin >> a;
  for (int i = 0; i < a; i++) {
    cin >> b;
    v.push_back(b);
  }
  for (int i = 0; i < a; i++) {
    if ((v[i] * v[i + 1]) % 4 == 0) {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
}
