#include<bits/stdc++.h>
using namespace std;  
#define pb push_back 
#define ppb pop_back 
#define make make_pair
#define FAST ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef long long int ll;
typedef double dd;
#define test int t;cin>>t;while(t--)
#define f(i,a,b) for(ll i=a;i<b;i++)
#define fr(j,a,b) for(ll j=a;j>=b;j--)
#define ln cout<<"\n";
#define se second
#define fi first
#define vll vector<ll>
using namespace std;
const ll mod=1e9+7;
const ll MAX=LLONG_MAX;
const ll MIN=LLONG_MIN;
int main()
{FAST;
test
{
   ll n;
   cin>>n;
   ll f=0;
   
   if(n%2)
   {
       cout<<"NO\n";
       continue;
   }
   
   if(ceil(sqrt(n))==floor(sqrt(n)))
   {
       f=1;
   }
   if(n%2==0)
   n=n/2;
   if(ceil(sqrt(n))==floor(sqrt(n)))
   {
       f=1;
   }
   
   if(f==1)
   {
       cout<<"YES\n";
   }
   else
   {
       cout<<"NO\n";
   }
}
return 0;
}