#include<bits/stdc++.h>

using namespace std;
#define ll long long
#define fast_input ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)
#define tc() ll test_case; cin >> test_case; for(auto tcv = 0; tcv < test_case; tcv++)

bool isSquare(ll n) {
    return abs(sqrt(n) - round(sqrt(n))) < 0.0000001;
}

int main() {
    fast_input;
    tc() {
        ll n;
        cin >> n;
        if ((n % 2 == 0 && isSquare(n / 2)) || (n % 4 == 0 && isSquare(n / 4))) {
            cout << "YES" << endl;
        } else cout << "NO" << endl;
    }
    return 0;
}