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