import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataset = Integer.parseInt(br.readLine());
		String str;

		for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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 class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataset = Integer.parseInt(br.readLine());
		String str;

		for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataset = Integer.parseInt(br.readLine());
		String str;

		for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataset = Integer.parseInt(br.readLine());
		String str;

		for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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)) int dataset = Integer.parseInt(br.readLine()); dataset Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String str; str for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < dataset i dataset i++ i++ i {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

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

class Main {
	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int dataset = Integer.parseInt(br.readLine());
		String str;

		for(int i = 0; i < dataset; i++) {
			str = br.readLine();
			String strline[] = str.split(" ", 0);

			int line[] = new int[strline.length];
			for(int j = 0; j < 3; j++) {
				line[j] = Integer.parseInt(strline[j]);
			}
			Arrays.sort(line);

			if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}