import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

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

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	}
} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	} main {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	} Scanner s = new Scanner(System.in); s new Scanner(System.in) int N = s.nextInt(); N s.nextInt() s.nextInt s s.nextLine() s.nextLine s int[][] a = new int[N][3]; a new int[N][3] N 3 String str ; str String[] result; result for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		} int i = 0; int i = 0; i 0 i <N i N i++ i++ i {
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		} {
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		} result = s.nextLine().split(" ") result s.nextLine().split(" ") s.nextLine().split s.nextLine() s.nextLine s " " for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			} int j = 0; int j = 0; j 0 j < a[i].length j a[i].length a[i] a i a[i].length j++ j++ j {
				a[i][j] = Integer.parseInt(result[j]);
			} {
				a[i][j] = Integer.parseInt(result[j]);
			} a[i][j] = Integer.parseInt(result[j]) a[i][j] a[i] a i j Integer.parseInt(result[j]) Integer.parseInt Integer result[j] result j Arrays.sort(a[i]) Arrays.sort Arrays a[i] a i for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

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

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

		} if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			} a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0 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][0]*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][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 0 {
				str = "YES";
			} str = "YES" str "YES" {
				str = "NO";
			} str = "NO" str "NO" System.out.println(str) System.out.println System.out System System.out str String[] args args public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	}
} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	}
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		s.nextLine();
		int[][] a = new int[N][3];
		String str ;
		String[] result;
		
	
		for(int i = 0;i <N;i++)
		{
			result = s.nextLine().split(" ");
			for(int j = 0; j < a[i].length;j++)
			{
				a[i][j] = Integer.parseInt(result[j]);
			}
			Arrays.sort(a[i]);
		}
		
		for(int i = 0;i<N;i++)
		{
			if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
			{
				str = "YES";
			}else{
				str = "NO";
			}
			System.out.println(str);

		}
	}
}