#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n, m;
  cin >> n;
  while (n--) {
    long long k;
    cin >> k;
    if (k % 4 == 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
