#include<bits/stdc++.h>
using namespace std;

#define ll long long int
#define si(a)       scanf("%d",&a)
#define sii(a,b)    scanf("%d %d",&a,&b)
#define siii(a,b,c) scanf("%d %d %d",&a,&b,&c)
#define sl(a)       scanf("%lld",&a)
#define sll(a,b)    scanf("%lld %lld",&a,&b)
#define slll(a,b,c) scanf("%lld %lld %lld",&a,&b,&c)
#define pf          printf
#define max3(a,b,c)   max(a,max(b,c))
#define min3(a,b,c)   min(a,min(b,c))

#define vi          vector<int>
#define vl          vector<ll>
#define pb          push_back
#define PB          pop_back
#define mp          make_pair
#define all(a)      a.begin(),a.end()

#define F(i,n)      for(i=0;i<n;i++)
#define FR(i,n)     for(i=n;i>0;i--)
#define FT(i,n)     for(i=1;i<=n;i++)

void solve(){
    int t;
    si(t);
    while (t--){
        ll n;
        cin>>n;
        ll x = sqrt(n/2);
        ll y = sqrt(n/4);
        if(2*x*x ==  n || 4*y*y ==  n){
            cout<<"YES"<<endl;
        }else{
            cout<<"NO"<<endl;
        }
    }
}
int main(){
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    solve();
}