#include<bits/stdc++.h>
using namespace std;
 bool isPerfectSquare(long double x)
{
    // Find floating point value of
    // square root of x.
    if (x >= 0) {
 
        long long sr = sqrt(x);
         
        // if product of square root
        //is equal, then
        // return T/F
        return (sr * sr == x);
    }
    // else return false if n<0
    return false;
}
void solve(){
long double n;
cin>>n ;
if(n==1){
    cout<<"NO"<<endl;
    return ;
}
long double res=2*n;
if((int)n%2!=0){
    cout<<"NO"<<endl;
    return ;
}
else{
    if(isPerfectSquare(res)|| isPerfectSquare(n)){
        cout<<"YES"<<endl;
        return ;
    }
    else{
        cout<<"NO"<<endl;
        return ;
    }
}
}
int main(){
int t;
cin>>t;
while(t--){
    solve();
}
}
