#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
typedef long long ll;
#define ios ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define tc int t;cin>>t;while(t--)
#define pb push_back
#define yes cout<<"YES"<<endl;
#define no cout<<"NO"<<endl;

int main()
{
    tc
    {
        int n;
        cin>>n;
        bool flag=false;
        if(n%2==0){
            n/=2;
        int x=sqrt(n);
        if(x*x==n)flag=true;
        if(n%2==0){
            n/=2;
        x=sqrt(n);
        if(x*x==n)flag=true;
        }
        }

        if(flag)yes
        else no
    }
}