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 r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	}
} 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 r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	}
} Main public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) String r = br.readLine(); r br.readLine() br.readLine br int n = Integer.valueOf(r); n Integer.valueOf(r) Integer.valueOf Integer r while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		} n > 0 && (r = br.readLine()) != null n > 0 n 0 (r = br.readLine()) != null (r = br.readLine()) r br.readLine() br.readLine br null {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		} String[] s = r.split(" "); s r.split(" ") r.split r " " int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) }; e { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) } (int) Math.pow(Integer.valueOf(s[0]), 2) Math.pow Math Integer.valueOf(s[0]) Integer.valueOf Integer s[0] s 0 2 (int) Math.pow(Integer.valueOf(s[1]), 2) Math.pow Math Integer.valueOf(s[1]) Integer.valueOf Integer s[1] s 1 2 (int) Math.pow(Integer.valueOf(s[2]), 2) Math.pow Math Integer.valueOf(s[2]) Integer.valueOf Integer s[2] s 2 2 Arrays.sort(e) Arrays.sort Arrays e System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO") System.out.println System.out System System.out ((e[0] + e[1]) == e[2]) ? "YES" : "NO" ((e[0] + e[1]) == e[2]) (e[0] + e[1]) e[0] e 0 e[1] e 1 e[2] e 2 "YES" "NO" n-- n String[] args args public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	}
} public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	}
} 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 r = br.readLine();
		int n = Integer.valueOf(r);
		while (n > 0 && (r = br.readLine()) != null) {
			String[] s = r.split(" ");
			int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
					(int) Math.pow(Integer.valueOf(s[1]), 2),
					(int) Math.pow(Integer.valueOf(s[2]), 2) };
			Arrays.sort(e);
			System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
			n--;
		}
	}
}