source_code: import java.util.*;
  import java.io.*;
  public class B {
  
  	public static void main(String[] args) {
  		FastScanner sc = new FastScanner();
  		int T = sc.nextInt();
  		while(T-->0) {
  			int n = sc.nextInt();
  			if(n % 2 == 0 && issq(n/2)) {
  				System.out.println("YES");
  			}
  			else if(n % 4 == 0 && issq(n/4)) {
  				System.out.println("YES");
  			}
  			else {
  				System.out.println("NO");
  			}
  		}
  
  	}
  
  	static boolean issq(long x) {
  		long rx = (long)Math.sqrt(x);
  		return rx * rx == x;
  	}
  	
  	static class FastScanner {
  		public BufferedReader reader;
  		public StringTokenizer tokenizer;
  		public FastScanner() {
  			reader = new BufferedReader(new InputStreamReader(System.in), 32768);
  			tokenizer = null;
  		}
  		public String next() {
  			while (tokenizer == null || !tokenizer.hasMoreTokens()) {
  				try {
  					tokenizer = new StringTokenizer(reader.readLine());
  				} catch (IOException e) {
  					throw new RuntimeException(e);
  				}
  			}
  			return tokenizer.nextToken();
  		}
  		public int nextInt() {
  			return Integer.parseInt(next());
  		}
  		public long nextLong() {
  			return Long.parseLong(next());
  		}
  		public double nextDouble() {
  			return Double.parseDouble(next());
  		}
  		public String nextLine() {
  			try {
  				return reader.readLine();
  			} catch(IOException e) {
  				throw new RuntimeException(e);
  			}
  		}
  	}
  
  }
  