#include <bits/stdc++.h>
int main() {
  int n, a[2000000000], flag = 1;
  for (int i = 0; i < n; i++) scanf("%d", &n);
  for (int j = 0; j < n - 1; j++) {
    if ((a[j] * (a[j] + 1) % 4 != 0)) flag = 0;
    break;
  }
  if (flag == 1)
    printf("Yes");
  else if (flag == 0)
    printf("No");
  return 0;
}
