import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io 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 f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				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 f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				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 f = br.readLine(); f br.readLine() br.readLine br int[] a = new int[3]; a new int[3] 3 for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		} int i = 0 ; int i = 0 ; i 0 i < Integer.parseInt(f) i Integer.parseInt(f) Integer.parseInt Integer f i++ i++ i {
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		} {
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		} String str = br.readLine(); str br.readLine() br.readLine br String[] stra = str.split(" "); stra str.split(" ") str.split str " " for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			} int j = 0 ; int j = 0 ; j 0 j < 3 j 3 j++ j++ j {
				a[j] = Integer.parseInt(stra[j]);
			} {
				a[j] = Integer.parseInt(stra[j]);
			} a[j] = Integer.parseInt(stra[j]) a[j] a j Integer.parseInt(stra[j]) Integer.parseInt Integer stra[j] stra j Arrays.sort(a) Arrays.sort Arrays a if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			} Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2) Math.pow(a[0],2) + Math.pow(a[1],2) Math.pow(a[0],2) Math.pow Math a[0] a 0 2 Math.pow(a[1],2) Math.pow Math a[1] a 1 2 Math.pow(a[2],2) Math.pow Math a[2] a 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) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				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 f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[] a = new int[3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			for(int j = 0 ; j < 3 ; j++){
				a[j] = Integer.parseInt(stra[j]);
			}
			Arrays.sort(a);
			if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){
				System.out.println("YES");
			}else {
				System.out.println("NO");
			}
		}
	}

}