2 8
2 15 400
1 13 100
3 26
3 27
3 28
3 29
3 30
3 31
3 32
3 33
 3 8
2 15 400
1 1 200
1 13 100
3 26
3 27
3 28
3 29
3 30
3 31
3 32
3 33

400
400
500
500
800
800
800
800
 600
600
600
700
800
1000
1000
1000

#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    if (n % 4 == 0) {
      n /= 4;
      int k = pow(n, 0.5);
      if (k * k == n)
        cout << "YES\n";
      else {
        k = pow(n * 2, 0.5);
        if (k * k == n)
          cout << "YES\n";
        else
          cout << "NO\n";
      }
    } else if (n & 1) {
      cout << "NO\n";
    } else {
      n /= 2;
      int k = pow(n, 0.5);
      if (k * k == n)
        cout << "YES\n";
      else
        cout << "NO\n";
    }
  }
}
