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

class Main {
	public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int DATE_QUANTITY = Integer.parseInt(br.readLine());
		for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[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[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int DATE_QUANTITY = Integer.parseInt(br.readLine());
		for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int DATE_QUANTITY = Integer.parseInt(br.readLine());
		for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int DATE_QUANTITY = Integer.parseInt(br.readLine());
		for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[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 DATE_QUANTITY = Integer.parseInt(br.readLine()); DATE_QUANTITY Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < DATE_QUANTITY i DATE_QUANTITY i++ i++ i {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} String[] splitedLine = br.readLine().split(" "); splitedLine br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] val = new int[3]; val new int[3] 3 for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			} {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			} int tmp = Integer.parseInt(splitedLine[j]); tmp Integer.parseInt(splitedLine[j]) Integer.parseInt Integer splitedLine[j] splitedLine j val[j] = (int) Math.pow(tmp, 2) val[j] val j (int) Math.pow(tmp, 2) Math.pow Math tmp 2 Arrays.sort(val) Arrays.sort Arrays val if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} (val[0] + val[1]) == val[2] (val[0] + val[1]) val[0] val 0 val[1] val 1 val[2] val 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[] arg arg
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

class Main {
	public static void main(String[] arg) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int DATE_QUANTITY = Integer.parseInt(br.readLine());
		for (int i = 0; i < DATE_QUANTITY; i++) {
			String[] splitedLine = br.readLine().split(" ");
			int[] val = new int[3];
			for (int j = 0; j < 3; j++) {
				int tmp = Integer.parseInt(splitedLine[j]);
				val[j] = (int) Math.pow(tmp, 2);
			}
			Arrays.sort(val);
			if ((val[0] + val[1]) == val[2]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}