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