#include <bits/stdc++.h>
using namespace std;
int a[20202020];
int main() {
  int n;
  while (~scanf("%d", &n)) {
    for (int i = 1; i <= n; i++) scanf("%d", &a[i]);
    long long tp, fl = 0;
    for (int i = 1; i < n; i++) {
      tp = a[i] * a[i + 1];
      if (tp % 4 == 0) {
        fl = 1;
        break;
      }
    }
    if (fl)
      puts("Yes");
    else
      puts("No");
  }
  return 0;
}
