import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main public static void main(String[] args) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} main {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	} Scanner sc = null; sc null int[] triangle = new int[3]; triangle new int[3] 3 try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} catch (Exception e) {
			System.out.println(e);
		} Exception e {
			System.out.println(e);
		} System.out.println(e) System.out.println System.out System System.out e {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		} if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} sc != null sc null {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			} try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				} catch (Exception e) {
					// TODO: handle exception
				} Exception e {
					// TODO: handle exception
				} {
					sc.close();
				} sc.close() sc.close sc {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		} sc = new Scanner(System.in) sc new Scanner(System.in) int numQ = sc.nextInt(); numQ sc.nextInt() sc.nextInt sc for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			} int i = 0; int i = 0; i 0 i < numQ i numQ i++ i++ i {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			} {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			} for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				} int j = 0; int j = 0; j 0 j < triangle.length j triangle.length triangle triangle.length j++ j++ j {
					triangle[j] = sc.nextInt();
				} {
					triangle[j] = sc.nextInt();
				} triangle[j] = sc.nextInt() triangle[j] triangle j sc.nextInt() sc.nextInt sc Arrays.sort(triangle) Arrays.sort Arrays triangle if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					} Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2) Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) Math.pow(triangle[0], 2) Math.pow Math triangle[0] triangle 0 2 Math.pow(triangle[1], 2) Math.pow Math triangle[1] triangle 1 2 Math.pow(triangle[2], 2) Math.pow Math triangle[2] triangle 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) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = null;
		int[] triangle = new int[3];

		try {
			sc = new Scanner(System.in);

			int numQ = sc.nextInt();

			for (int i = 0; i < numQ; i++) {
				for (int j = 0; j < triangle.length; j++) {
					triangle[j] = sc.nextInt();
				}
					Arrays.sort(triangle);
					if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
						System.out.println("YES");
					}else{
						System.out.println("NO");
					}
			}

		}catch (Exception e) {
			System.out.println(e);
		} finally {
			if (sc != null) {
				try {
					sc.close();
				} catch (Exception e) {
					// TODO: handle exception
				}
			}
		}
	}

}