import java.io.*;
import java.util.*;

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

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