import java.io.*;

public class Main {
	public static void main(String args[]) throws IOException{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} import java.io.*; io.* java public class Main {
	public static void main(String args[]) throws IOException{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String args[]) throws IOException{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} main {
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} String str; str String[] dataSet; dataSet int dataSet_Number; dataSet_Number double a a b b c c i; i BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in)); input new BufferedReader(new InputStreamReader(System.in)) dataSet_Number = Integer.parseInt(input.readLine()) dataSet_Number Integer.parseInt(input.readLine()) Integer.parseInt Integer input.readLine() input.readLine input for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} i = 0; i = 0 i 0 i < dataSet_Number i dataSet_Number i++ i++ i {
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} {
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} str = input.readLine() str input.readLine() input.readLine input dataSet = str.split(" ") dataSet str.split(" ") str.split str " " a = Math.pow(Double.parseDouble(dataSet[0]),2) a Math.pow(Double.parseDouble(dataSet[0]),2) Math.pow Math Double.parseDouble(dataSet[0]) Double.parseDouble Double dataSet[0] dataSet 0 2 b = Math.pow(Double.parseDouble(dataSet[1]),2) b Math.pow(Double.parseDouble(dataSet[1]),2) Math.pow Math Double.parseDouble(dataSet[1]) Double.parseDouble Double dataSet[1] dataSet 1 2 c = Math.pow(Double.parseDouble(dataSet[2]),2) c Math.pow(Double.parseDouble(dataSet[2]),2) Math.pow Math Double.parseDouble(dataSet[2]) Double.parseDouble Double dataSet[2] dataSet 2 2 if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} (a + b) == c || (b + c) == a || (a + c) == b (a + b) == c || (b + c) == a || (a + c) == b (a + b) == c (a + b) a b c (b + c) == a (b + c) b c a (a + c) == b (a + c) a c b {
				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{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String args[]) throws IOException{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main
import java.io.*;

public class Main {
	public static void main(String args[]) throws IOException{
		String str;
		String[] dataSet;
		int dataSet_Number;
		double a,b,c,i;
		BufferedReader input =
				new BufferedReader(new InputStreamReader(System.in));
		dataSet_Number = Integer.parseInt(input.readLine());
		
		for(i = 0; i < dataSet_Number; i++){
			str = input.readLine();
			dataSet = str.split(" ");
			a = Math.pow(Double.parseDouble(dataSet[0]),2);
			b = Math.pow(Double.parseDouble(dataSet[1]),2);
			c = Math.pow(Double.parseDouble(dataSet[2]),2);
			
			if((a + b) == c || (b + c) == a || (a + c) == b){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}