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