#include <bits/stdc++.h>
#define ll long long
using namespace std ;
// SHAHEEN 〠
ll a[100100] ;
int main()
{
    ll t ;
    cin >> t ;
    while ( t-- )
    {
        long double  n ;
        cin >> n ;
        double w = n/2 ;
        double q = n/4 ;
        int  e = sqrt(w) ;
        int  r = sqrt(q) ;
        // cout << w << " "<< q ;
        if ( e * e == w || r*r == q )
        cout << "YES"<< "\n" ;
        else
        cout <<"NO" << "\n" ;
    }
}
