#include<bits/stdc++.h>
#define fast ios::sync_with_stdio(0), cin.tie(0)
using namespace std;
typedef long long ll;
const int N = 1e2 + 10; 
const int mod = 1e9 + 7;
int n, x, a[N];
void solve()
{
    if(n & 1) {
        cout << "NO" << endl;
        return ;
    }
    n /= 2;
    int v = sqrt(n);
    if(v * v == n) {
        cout << "YES" << endl;
        return ;
    }
    solve();
}
int main () { 

    int t;
    cin >> t;
    while(t --)
    {
        cin >> n;
        solve();
    }

    return 0;
}