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