#include <bits/stdc++.h>
#define ll long long
#define arr(a) new int[a]
#define db1(x) cout<<#x<<"="<<x<<'\n'
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<'\n'
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<'\n'
#define dbV(arr) cout << #arr << "=[ "; \
for(auto i:arr) cout << i << " "; cout << "]\n";
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define repF(i,a,n) for(int i = (a); i <= (n); ++i)
#define repB(i,a,n) for(int i = (a); i >= (n); --i)
#define test(t) int t;cin>>t;while(t--)
#define inp(a) int a;cin>>a;
#define pii pair<int,int>
#define pll pair<ll,ll>
#define vi vector<int>
#define vl vector<ll>
#define umii unordered_map<int,int>
#define umll unordered_map<ll,ll>
#define mii map<int,int>
#define mll map<ll,ll>
#define seti set<int>
#define setl set<ll>
#define pb push_back
#define F first
#define S second
#define MOD 1000000007
#define all(z) z.begin(),z.end()
using namespace std;

void printArray(int a[],int n)
{
	rep(i,n)
	cout<<a[i]<<" ";
	cout<<"\n";
}

void printVec(vi v)
{
	int s = v.size();
	rep(i,s)
	cout<<v[i]<<" ";
	cout<<"\n";
}
void printBool(bool b)
{
 	if(b) cout<<"YES\n";
 	else cout<<"NO\n";
}
signed main()
{
 	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	cout.tie(NULL);
	test(t)
	{
		int n;cin>>n;
		double a = sqrt(n/2.0);
		double b = sqrt(n/4.0);
		if(int(a) == a || int(b) == b)
		{
			cout<<"YES\n";
		}
		else
		cout<<"NO\n";
	}
 return 0;
}
