#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define mod 1000000007
#define fast  ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define tc ll t; cin>>t; while(t--)
#define f() for(ll i=0;i<n;i++)
#define all(v) v.begin(),v.end()
#define pb push_back
#define mp make_pair
#define int ll
bool isSquare(int x){
  int y=sqrt(x);
  return y*y==x;
}
signed main()
{
    fast
    #ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
    #endif
    tc
    {
        int n;
        cin>>n;
        if(n%2==0&&isSquare(n/2)) cout<<"YES"<<endl;
        else if(n%4==0&&isSquare(n/4)) cout<<"YES"<<endl;
        else cout<<"NO"<<endl;
    }   
}