#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main() {
  int N;
  cin >> N;
  for (int i = 0; i <= N - 1; i++) {
    cin >> a[i];
  }
  for (int i = 0; i <= N - 1; i++) {
    if (a[i] % 4 != 0) continue;
    if ((N - 2) <= (N - i))
      cout << "Yes" << endl;
    else if (((N - 3) <= (N - i)) || (a[i] * a[i] == 2 * 2))
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  cout << endl;
  return 0;
}
