#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef long double lld;
#define M 1000000007
#define FASTIO() ios_base::sync_with_stdio(false);cin.tie(NULL);

int main(){
    FASTIO()
    int t;cin>>t;
    while(t--){
        int n;cin>>n;
        bool can=false;
        int cpy=n;
        if(n%2!=0){
            cout<<"NO"<<endl;
            continue;
        }
        cpy/=2;
        int k1=floor((double)sqrt((double)cpy));
        if(k1*k1==cpy)can=true;
        if(n%4!=0 && can==false){
            cout<<"NO"<<endl;
            continue;
        }
        n/=4;
        int k2=floor((double)sqrt((double)n));
        if(k2*k2==n)can=true;
        if(can)cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }
    ///
    return 0;
}
