#include <bits/stdc++.h>
int main() {
  int t, m = 0;
  long long int a, b[100000];
  scanf("%d", &t);
  for (int i = 0; i < t; i++) {
    scanf("%lld", &b[i]);
  }
  for (int i = 0; i < t - 1; i++) {
    if ((b[i] * b[i + 1]) % 4 == 0) m = 1;
  }
  if (m == 0)
    printf("No\n");
  else
    printf("Yes\n");
}
