public class Main{
	public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	}
	public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	}
} public class Main{
	public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	}
	public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	}
} Main public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	} run {
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	} java.util.Scanner sc = new java.util.Scanner(in); sc new java.util.Scanner(in) int N N i i j; j int[][] a; a N = sc.nextInt() N sc.nextInt() sc.nextInt sc a = new int[N][3] a new int[N][3] N 3 for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	} i = 0; i = 0 i 0 i < N i N i++ i++ i {
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	} {
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	} for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		} j = 0; j = 0 j 0 j < 3 j 3 j++ j++ j {
			a[i][j] = sc.nextInt();
		} {
			a[i][j] = sc.nextInt();
		} a[i][j] = sc.nextInt() a[i][j] a[i] a i j sc.nextInt() sc.nextInt sc sc.close() sc.close sc for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	} i = 0; i = 0 i 0 i < N i N i++ i++ i {
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	} {
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	} if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		} a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2] a[i][0] * a[i][0] + a[i][1] * a[i][1] a[i][0] * a[i][0] a[i][0] a[i] a i 0 a[i][0] a[i] a i 0 a[i][1] * a[i][1] a[i][1] a[i] a i 1 a[i][1] a[i] a i 1 a[i][2] * a[i][2] a[i][2] a[i] a i 2 a[i][2] a[i] a i 2 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		} a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1] a[i][0] * a[i][0] + a[i][2] * a[i][2] a[i][0] * a[i][0] a[i][0] a[i] a i 0 a[i][0] a[i] a i 0 a[i][2] * a[i][2] a[i][2] a[i] a i 2 a[i][2] a[i] a i 2 a[i][1] * a[i][1] a[i][1] a[i] a i 1 a[i][1] a[i] a i 1 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		} a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0] a[i][2] * a[i][2] + a[i][1] * a[i][1] a[i][2] * a[i][2] a[i][2] a[i] a i 2 a[i][2] a[i] a i 2 a[i][1] * a[i][1] a[i][1] a[i] a i 1 a[i][1] a[i] a i 1 a[i][0] * a[i][0] a[i][0] a[i] a i 0 a[i][0] a[i] a i 0 {
			System.out.println("YES");
		} System.out.println("YES") System.out.println System.out System System.out "YES" {
			System.out.println("NO");
		} System.out.println("NO") System.out.println System.out System System.out "NO" java.io.InputStream in in java.io.PrintStream out out public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	} main {
		(new Main()).run(System.in,System.out);
	} (new Main()).run(System.in,System.out) (new Main()).run (new Main()) System.in System System.in System.out System System.out String[] args args public class Main{
	public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	}
	public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	}
} public class Main{
	public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	}
	public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	}
} Main
public class Main{
	public void run(java.io.InputStream in,java.io.PrintStream out){
	java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
	int N, i, j;
	int[][] a;

	N = sc.nextInt();
	a = new int[N][3];

	for(i = 0;i < N;i++){
		for(j = 0;j < 3;j++){
			a[i][j] = sc.nextInt();
		}
	}		
	sc.close();

/*answer*/
	for(i = 0;i < N;i++){
		if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
			System.out.println("YES");
		}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
			System.out.println("YES");
		}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}

	}

	}
	public static void main(String[] args){
		(new Main()).run(System.in,System.out);
	}
}