import java.io.*;
import java.util.Arrays;
public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} import java.io.*; io.* java import java.util.Arrays; Arrays java.util public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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 line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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 line; line int set = Integer.parseInt(br.readLine()); set Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < set i set i++ i++ i {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} line = br.readLine() line br.readLine() br.readLine br String[] numbers = line.split(" "); numbers line.split(" ") line.split line " " int[] numSet = new int[3]; numSet new int[3] 3 for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				numSet[j] = Integer.parseInt(numbers[j]);
			} {
				numSet[j] = Integer.parseInt(numbers[j]);
			} numSet[j] = Integer.parseInt(numbers[j]) numSet[j] numSet j Integer.parseInt(numbers[j]) Integer.parseInt Integer numbers[j] numbers j Arrays.sort(numSet) Arrays.sort Arrays numSet if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0] numSet[2]*numSet[2] numSet[2] numSet 2 numSet[2] numSet 2 numSet[1]*numSet[1] + numSet[0]*numSet[0] numSet[1]*numSet[1] numSet[1] numSet 1 numSet[1] numSet 1 numSet[0]*numSet[0] numSet[0] numSet 0 numSet[0] numSet 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 public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

			if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main
import java.io.*;
import java.util.Arrays;
public class Main {

	public static void main (String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int set = Integer.parseInt(br.readLine());
					
		for(int i = 0; i < set; i++) {
			line = br.readLine();
			String[] numbers = line.split(" ");
			int[] numSet = new int[3];

			for (int j = 0; j < 3; j++){
				numSet[j] = Integer.parseInt(numbers[j]);
			}

			Arrays.sort(numSet);

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