#include <iostream>
using namespace std;
//mod2==0,说明有偶因子
int main() {
    int tt;
    cin>>tt;
    while(tt--){
        int n;
        cin>>n;
        cout<<((n%2==0)?"YES":"NO")<<endl;
    }
}