import java.lang.Math.*;
import java.util.Scanner;
import java.util.Arrays;

class Main{
    public static void main(String[] args){
	final Scanner sc = new Scanner(System.in);
	int n=sc.nextInt();
	int[] a=new int[3]; 
	for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	}
    }
} import java.lang.Math.*; Math.* java.lang import java.util.Scanner; Scanner java.util import java.util.Arrays; Arrays java.util class Main{
    public static void main(String[] args){
	final Scanner sc = new Scanner(System.in);
	int n=sc.nextInt();
	int[] a=new int[3]; 
	for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	}
    }
} Main public static void main(String[] args){
	final Scanner sc = new Scanner(System.in);
	int n=sc.nextInt();
	int[] a=new int[3]; 
	for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	}
    } main {
	final Scanner sc = new Scanner(System.in);
	int n=sc.nextInt();
	int[] a=new int[3]; 
	for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	}
    } final Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n=sc.nextInt(); n sc.nextInt() sc.nextInt sc int[] a=new int[3]; a new int[3] 3 for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	} int i=0; int i=0; i 0 i<n i n i++ i++ i {
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	} {
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	} a[0]=sc.nextInt() a[0] a 0 sc.nextInt() sc.nextInt sc a[1]=sc.nextInt() a[1] a 1 sc.nextInt() sc.nextInt sc a[2]=sc.nextInt() a[2] a 2 sc.nextInt() sc.nextInt sc Arrays.sort(a) Arrays.sort Arrays a if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO"); Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2) Math.pow(a[2],2) Math.pow Math a[2] a 2 2 Math.pow(a[0],2)+Math.pow(a[1],2) Math.pow(a[0],2) Math.pow Math a[0] a 0 2 Math.pow(a[1],2) Math.pow Math a[1] a 1 2 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
import java.lang.Math.*;
import java.util.Scanner;
import java.util.Arrays;

class Main{
    public static void main(String[] args){
	final Scanner sc = new Scanner(System.in);
	int n=sc.nextInt();
	int[] a=new int[3]; 
	for(int i=0;i<n;i++){
	    a[0]=sc.nextInt();
	    a[1]=sc.nextInt();
	    a[2]=sc.nextInt();
	    Arrays.sort(a);	    
	    if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES");
	    else System.out.println("NO");
	}
    }
}