#include<iostream>
using namespace std;
#include<bits/stdc++.h>
#include<string.h>
#include <iomanip>
#include <ctype.h>
#define ll  long long int
#define test cout<<"Nevil\n";
#define ios ios_base::sync_with_stdio(false); cin.tie(NULL)
#define pi 3.14159265359
const ll md=1e9+7;
int main()
{
    ios;
    ll cases=1;
    cin>>cases;
    while(cases--)
    {
        ll n;
        cin>>n;
        ll t1=n/2;
        ll t2=n/4;
        ll s1=sqrt(t1);
        ll s2=sqrt(t2);
        ll f=0;
        if(((s1*s1)==t1 && n%2==0) || ((s2*s2)==t2 && n%4==0))
            cout<<"YES\n";
        else
            cout<<"NO\n";
    }
    return 0;
}
