#include <bits/stdc++.h>
using namespace std;
void sol() {
  long long int n;
  cin >> n;
  long long int a;
  for (long long int i = 0; i < n; i++) {
    cin >> a;
    long long int b = 90 * a;
    long long int c = 270 * a;
    if (b % 360 == 0 || c % 360 == 0)
      cout << "YES" << endl;
    else {
      cout << "NO" << endl;
    }
  }
}
signed main() {
  long long int t = 1;
  for (long long int i = 0; i < t; i++) {
    sol();
  }
}
