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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} String[] str = br.readLine().split(" "); str br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] sides = new int[str.length]; sides new int[str.length] str.length str str.length for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			} int j = 0; int j = 0; j 0 j < str.length j str.length str str.length j++ j++ j {
				sides[j] = Integer.parseInt(str[j]);
			} {
				sides[j] = Integer.parseInt(str[j]);
			} sides[j] = Integer.parseInt(str[j]) sides[j] sides j Integer.parseInt(str[j]) Integer.parseInt Integer str[j] str j Arrays.sort(sides) Arrays.sort Arrays sides if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2) Math.pow(sides[0], 2) + Math.pow(sides[1], 2) Math.pow(sides[0], 2) Math.pow Math sides[0] sides 0 2 Math.pow(sides[1], 2) Math.pow Math sides[1] sides 1 2 Math.pow(sides[2], 2) Math.pow Math sides[2] sides 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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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));
		int N = Integer.parseInt(br.readLine());

		for (int i = 0; i < N; i++) {
			String[] str = br.readLine().split(" ");
			int[] sides = new int[str.length];
			for (int j = 0; j < str.length; j++) {
				sides[j] = Integer.parseInt(str[j]);
			}
			Arrays.sort(sides);
			if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}