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

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

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