import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

class Main {
	public static void main(String[] args)
			throws IOException {

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String number = br.readLine();
		String s = br.readLine();
		StringTokenizer st;
		int count = 0;
		ArrayList<String> list = new ArrayList<>();

		while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		}
		for (String string : list) {
			System.out.println(string);
		}

	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.ArrayList; ArrayList java.util import java.util.Arrays; Arrays java.util import java.util.Collections; Collections java.util import java.util.StringTokenizer; StringTokenizer java.util class Main {
	public static void main(String[] args)
			throws IOException {

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String number = br.readLine();
		String s = br.readLine();
		StringTokenizer st;
		int count = 0;
		ArrayList<String> list = new ArrayList<>();

		while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		}
		for (String string : list) {
			System.out.println(string);
		}

	}

} Main public static void main(String[] args)
			throws IOException {

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String number = br.readLine();
		String s = br.readLine();
		StringTokenizer st;
		int count = 0;
		ArrayList<String> list = new ArrayList<>();

		while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		}
		for (String string : list) {
			System.out.println(string);
		}

	} main {

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String number = br.readLine();
		String s = br.readLine();
		StringTokenizer st;
		int count = 0;
		ArrayList<String> list = new ArrayList<>();

		while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		}
		for (String string : list) {
			System.out.println(string);
		}

	} BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in)); br new BufferedReader(
				new InputStreamReader(System.in)) String number = br.readLine(); number br.readLine() br.readLine br String s = br.readLine(); s br.readLine() br.readLine br StringTokenizer st; st int count = 0; count 0 ArrayList<String> list = new ArrayList<>(); list new ArrayList<>() while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		} !(s == null || "".equals(s)) (s == null || "".equals(s)) s == null s null "".equals(s) "".equals "" s {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		} st = new StringTokenizer(s) st new StringTokenizer(s) Integer[] tri = new Integer[3]; tri new Integer[3] 3 tri[0] = Integer.parseInt(st
					.nextToken()) tri[0] tri 0 Integer.parseInt(st
					.nextToken()) Integer.parseInt Integer st
					.nextToken() st
					.nextToken st tri[1] = Integer.parseInt(st
					.nextToken()) tri[1] tri 1 Integer.parseInt(st
					.nextToken()) Integer.parseInt Integer st
					.nextToken() st
					.nextToken st tri[2] = Integer.parseInt(st
					.nextToken()) tri[2] tri 2 Integer.parseInt(st
					.nextToken()) Integer.parseInt Integer st
					.nextToken() st
					.nextToken st Arrays.sort(tri, Collections
					.reverseOrder()) Arrays.sort Arrays tri Collections
					.reverseOrder() Collections
					.reverseOrder Collections String yesno = new String(); yesno new String() yesno = "NO" yesno "NO" double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2); compare Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2) Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2) Math.pow(tri[0], 2) Math.pow Math tri[0] tri 0 2 Math.pow(tri[1], 2) Math.pow Math tri[1] tri 1 2 Math
							.pow(tri[2], 2) Math
							.pow Math tri[2] tri 2 2 if (compare == 0) {
				yesno = "YES";
			} compare == 0 compare 0 {
				yesno = "YES";
			} yesno = "YES" yesno "YES" list.add(count++, yesno) list.add list count++ count yesno s = br.readLine() s br.readLine() br.readLine br for (String string : list) {
			System.out.println(string);
		} String string list {
			System.out.println(string);
		} {
			System.out.println(string);
		} System.out.println(string) System.out.println System.out System System.out string String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;

class Main {
	public static void main(String[] args)
			throws IOException {

		BufferedReader br = new BufferedReader(
				new InputStreamReader(System.in));
		String number = br.readLine();
		String s = br.readLine();
		StringTokenizer st;
		int count = 0;
		ArrayList<String> list = new ArrayList<>();

		while (!(s == null || "".equals(s))) {
			st = new StringTokenizer(s);
			Integer[] tri = new Integer[3];
			tri[0] = Integer.parseInt(st
					.nextToken());
			tri[1] = Integer.parseInt(st
					.nextToken());
			tri[2] = Integer.parseInt(st
					.nextToken());

			Arrays.sort(tri, Collections
					.reverseOrder());

			String yesno = new String();
			yesno = "NO";

			double compare = Math.pow(tri[0], 2)
					- Math.pow(tri[1], 2) - Math
							.pow(tri[2], 2);
			if (compare == 0) {
				yesno = "YES";
			}

			list.add(count++, yesno);
			s = br.readLine();

		}
		for (String string : list) {
			System.out.println(string);
		}

	}

}