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