#include <bits/stdc++.h>
using namespace std;
template <typename T>
bool mmax(T &m, const T q) {
  if (m < q) {
    m = q;
    return true;
  } else
    return false;
}
template <typename T>
bool mmin(T &m, const T q) {
  if (m > q) {
    m = q;
    return true;
  } else
    return false;
}
const int MOD = 1e9 + 7;
const int MAXN = 2e5 + 3;
const int INF = 1e9;
void solve() {
  int n;
  cin >> n;
  cout << ((n % 4 == 0) ? "YES" : "NO") << '\n';
}
int main(int argc, char **argv) {
  ios::sync_with_stdio(false);
  cin.tie(0);
  int ntest = 1;
  cin >> ntest;
  while (ntest--) solve();
  return 0;
}
