import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	}

} import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	} main {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int in0 = scan.nextInt(); in0 scan.nextInt() scan.nextInt scan for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		} int i = 0; int i = 0; i 0 i < in0 i in0 i++ i++ i {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		} {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		} int x = scan.nextInt(); x scan.nextInt() scan.nextInt scan int y = scan.nextInt(); y scan.nextInt() scan.nextInt scan int z = scan.nextInt(); z scan.nextInt() scan.nextInt scan int x2 = (int)Math.pow(x, 2); x2 (int)Math.pow(x, 2) Math.pow Math x 2 int y2 = (int)Math.pow(y, 2); y2 (int)Math.pow(y, 2) Math.pow Math y 2 int z2 = (int)Math.pow(z, 2); z2 (int)Math.pow(z, 2) Math.pow Math z 2 boolean sw = false; sw false if(x2 == (y2 + z2))sw = true; x2 == (y2 + z2) x2 (y2 + z2) y2 z2 sw = true sw true if(y2 == (x2 + z2))sw = true; y2 == (x2 + z2) y2 (x2 + z2) x2 z2 sw = true sw true if(z2 == (y2 + x2))sw = true; z2 == (y2 + x2) z2 (y2 + x2) y2 x2 sw = true sw true if (sw) {
				System.out.println("YES");
			} else System.out.println("NO"); sw {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	}

} Main
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scan = new Scanner(System.in);

		int in0 = scan.nextInt();

		for (int i = 0; i < in0; i++) {
			int x = scan.nextInt();
			int y = scan.nextInt();
			int z = scan.nextInt();
			
			int x2 = (int)Math.pow(x, 2);
			int y2 = (int)Math.pow(y, 2);
			int z2 = (int)Math.pow(z, 2);
			
			boolean sw = false;
			
			if(x2 == (y2 + z2))sw = true;
			if(y2 == (x2 + z2))sw = true;
			if(z2 == (y2 + x2))sw = true;
			
			if (sw) {
				System.out.println("YES");
			} else System.out.println("NO");
			
		}
	}

}