#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e5;
int main() {
  int n;
  int a[maxn];
  scanf("%d", &n);
  for (int i = 1; i <= n - 1; i++) {
    scanf("%d", a[i]);
    if ((a[i] * a[i + 1]) % 4 == 0)
      printf("Yes\n");
    else
      printf("No\n");
  }
  return 0;
}
