source_code: import java.io.OutputStream;
  import java.io.IOException;
  import java.io.InputStream;
  import java.io.PrintWriter;
  import java.util.StringTokenizer;
  import java.io.IOException;
  import java.io.BufferedReader;
  import java.io.InputStreamReader;
  import java.io.InputStream;
  
  /**
   * Built using CHelper plug-in
   * Actual solution is at the top
   */
  public class Main {
      public static void main(String[] args) {
          InputStream inputStream = System.in;
          OutputStream outputStream = System.out;
          FastScanner in = new FastScanner(inputStream);
          PrintWriter out = new PrintWriter(outputStream);
          TaskB solver = new TaskB();
          solver.solve(1, in, out);
          out.close();
      }
  
      static class TaskB {
          public void solve(int testNumber, FastScanner in, PrintWriter out) {
              int numTests = in.nextInt();
              for (int test = 0; test < numTests; test++) {
                  int n = in.nextInt();
                  boolean can = false;
                  if (n % 2 == 0 && isSquare(n / 2)) {
                      can = true;
                  }
                  if (n % 4 == 0 && isSquare(n / 4)) {
                      can = true;
                  }
                  out.println(can ? "YES" : "NO");
              }
          }
  
          private boolean isSquare(int n) {
              int x = (int) Math.sqrt(n);
              while (x * x > n) {
                  --x;
              }
              while (x * x < n) {
                  ++x;
              }
              return x * x == n;
          }
  
      }
  
      static class FastScanner {
          private BufferedReader in;
          private StringTokenizer st;
  
          public FastScanner(InputStream stream) {
              in = new BufferedReader(new InputStreamReader(stream));
          }
  
          public String next() {
              while (st == null || !st.hasMoreTokens()) {
                  try {
                      st = new StringTokenizer(in.readLine());
                  } catch (IOException e) {
                      throw new RuntimeException(e);
                  }
              }
              return st.nextToken();
          }
  
          public int nextInt() {
              return Integer.parseInt(next());
          }
  
      }
  }
  
  