#include <bits/stdc++.h>
using namespace std;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
const int N = 1e5 + 7;
const int inf = INT_MAX / 2;
const long long INF = LLONG_MAX / 3;
const int MOD = 998244353;
const long double eps = 1e-6;
const pair<int, int> dir[] = {{0, 1}, {0, -1}, {1, 0}, {-1, 0}};
signed main() {
  cout << fixed << setprecision(9);
  ios::sync_with_stdio(false), cin.tie(0), cout.tie(0);
  int q;
  cin >> q;
  while (q--) {
    long long n;
    cin >> n;
    cout << (n % 4 == 0 ? "YES\n" : "NO\n");
  }
  return 0;
}
