#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  string result[t];
  for (int i = 0; i < t; i++) {
    int n;
    cin >> n;
    if (n % 4 == 0)
      result[i] = "YES";
    else
      result[i] = "NO";
  }
  for (int i = 0; i < t; i++) cout << result[i] << endl;
}
