#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  cout << fixed << setprecision(10);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    cout << (n % 4 ? "NO" : "YES") << endl;
  }
  return 0;
}
