#include <bits/stdc++.h>
using namespace std;
int dp[1234][1234];
int main() {
  int n, i;
  int a[12345], b[12345];
  cin >> n;
  for (i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (i = 0; i < n - 1; i++) {
    b[i] = a[i] * a[i + 1];
    if (b[i] % 4 == 0) return printf("Yes\n");
  }
  printf("No\n");
  return 0;
}
