#include<bits/stdc++.h>
using namespace std;
const double eps = 1e-8;

int main()
{
   int t;
   cin >> t;
   for(int P=1;P<=t;P++){
      int n;
      cin >> n;
      int s=n;
      s/=2;
      int s1=n;
      s1/=4;
      long double d=sqrt(s);
      long double d1=sqrt(s1);
      if(floor(d)==ceil(d)&&n%2==0)
        cout << "YES"<< endl;
      else if(floor(d1)==ceil(d1)&&n%4==0)
        cout << "YES" <<endl;
      else
        cout << "NO" << endl;
   }
}
