#include<bits/stdc++.h>
#define ll long long
#define inf 2147483647
using namespace std;

bool pf(int n)
{
    bool flag = 0;
    for (int i = 0; i * i <= n; i++)
    {
        if (i * i == n)
            flag = 1;
    }
    return flag;
}


int main()
{
    ios::sync_with_stdio(0), cin.tie(0);
    int t; cin >> t;
    while (t--)
    {
        int n; cin >> n;
        if (n % 2 == 1)
        {
            cout << "NO\n";
            continue;
        }
        bool flag = 0;
        if (pf(n / 2))flag = 1;
        if (n % 4 == 0 && pf(n / 4))flag = 1;
        if (flag)cout << "YES\n";
        else cout << "NO\n";
    }
    return 0;
}

