#include<bits/stdc++.h>
using namespace std;
#define int long long
#define IOS ios::sync_with_stdio(false)
#define TIE cin.tie(NULL);cout.tie(NULL)
//Constants
#define PI   3.141592653593
const long long mod = 1e9 + 7ll ;
#define EPS  0.000000001
#define INF  0X3f3f3f3f


void solve()
{
    int n;
    cin>>n;
    if(n%2){cout<<"NO\n";return;}
    n/=2;
    for(int i=1;i*i<=n;i++)
    {
        if((i*i)==n)
        {
            cout<<"YES\n";
            return;
        }
    }
    if(n%2==0){n/=2;

    for(int i=1;i*i<=n;i++)
    {
        if((i*i)==n)
        {
            cout<<"YES\n";
            return;
        }
    }

    }

   
     cout<<"NO\n";
}



int32_t main()
{
IOS;
TIE;     
#ifndef ONLINE_JUDGE 
  
    // For getting input from input.txt file 
    freopen("input.txt", "r", stdin); 
  
    // Printing the Output to output.txt file 
    freopen("output.txt", "w", stdout); 
  
#endif
int t;
cin>>t;
while(t--)
solve();   
}