#include <bits/stdc++.h>
using namespace std;
long long int max(long long int a, long long int b) {
  if (a > b)
    return a;
  else
    return b;
}
long long int min(long long int a, long long int b) {
  if (a < b)
    return a;
  else
    return b;
}
const int dx[4] = {-1, 1, 0, 0};
const int dy[4] = {0, 0, -1, 1};
int XX[] = {-1, -1, -1, 0, 0, 1, 1, 1};
int YY[] = {-1, 0, 1, -1, 1, -1, 0, 1};
int main() {
  ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);
  long long int m, t, r, i, j, x, l, y, w, h, n, a, b, k;
  cin >> t;
  while (t--) {
    cin >> n;
    if (n == 3) {
      cout << "NO"
           << "\n";
    } else {
      n -= 4;
      if (n % 4 == 0) {
        cout << "YES"
             << "\n";
      } else
        cout << "NO"
             << "\n";
    }
  }
}
