#include <iostream>
#include <cmath>
using namespace std;

int main() {
	int t;
	cin >> t;
	while (t--) {
		double n;
		cin >> n;
		if (sqrt(n / 2) == (int)sqrt(n / 2)) {
			cout << "YES\n";
		}
		else {
			if (sqrt(n / 4) == (int)sqrt(n / 4)) {
				cout << "YES\n";
			}
			else cout << "NO\n";
		}
	}
}