import java.io.*;
class Main{

    public static void main(String[] args)throws IOException{
	
	BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	int time;
	buf=br.readLine();
	time=Integer.parseInt(buf);
	for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	}
    }
} import java.io.*; io.* java class Main{

    public static void main(String[] args)throws IOException{
	
	BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	int time;
	buf=br.readLine();
	time=Integer.parseInt(buf);
	for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	}
    }
} Main public static void main(String[] args)throws IOException{
	
	BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	int time;
	buf=br.readLine();
	time=Integer.parseInt(buf);
	for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	}
    } main {
	
	BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	int time;
	buf=br.readLine();
	time=Integer.parseInt(buf);
	for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	}
    } BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in)); br new BufferedReader (new InputStreamReader(System.in)) String buf; buf int time; time buf=br.readLine() buf br.readLine() br.readLine br time=Integer.parseInt(buf) time Integer.parseInt(buf) Integer.parseInt Integer buf for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	} int i=0; int i=0; i 0 i<time i time i++ i++ i {
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	} {
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	} int[] side =new int[3]; side new int[3] 3 buf=br.readLine() buf br.readLine() br.readLine br String[] buf2=buf.split(" "); buf2 buf.split(" ") buf.split buf " " for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    } int j=0; int j=0; j 0 j<3 j 3 j++ j++ j {
		side[j]=Integer.parseInt(buf2[j]);
	    } {
		side[j]=Integer.parseInt(buf2[j]);
	    } side[j]=Integer.parseInt(buf2[j]) side[j] side j Integer.parseInt(buf2[j]) Integer.parseInt Integer buf2[j] buf2 j java.util.Arrays.sort(side) java.util.Arrays.sort java.util.Arrays java.util java java.util java.util.Arrays side if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    } (side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0 (side[2]*side[2]-side[1]*side[1]-side[0]*side[0]) side[2]*side[2]-side[1]*side[1]-side[0]*side[0] side[2]*side[2] side[2] side 2 side[2] side 2 side[1]*side[1] side[1] side 1 side[1] side 1 side[0]*side[0] side[0] side 0 side[0] side 0 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" String[] args args
import java.io.*;
class Main{

    public static void main(String[] args)throws IOException{
	
	BufferedReader br =
	    new BufferedReader (new InputStreamReader(System.in));
	String buf;
	int time;
	buf=br.readLine();
	time=Integer.parseInt(buf);
	for(int i=0;i<time;i++){
	    int[] side =new int[3];
	    buf=br.readLine();
	    String[] buf2=buf.split(" ");
	    for(int j=0;j<3;j++){
		side[j]=Integer.parseInt(buf2[j]);
	    }
	    java.util.Arrays.sort(side);
	    if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
		System.out.println("YES");
	    }else{
		System.out.println("NO");
	    }
	}
    }
}