import java.io.*;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;

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

		Scanner scan = new Scanner(System.in);
		int times = scan.nextInt();
		for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} import java.io.*; io.* java import java.util.ArrayDeque; ArrayDeque java.util import java.util.ArrayList; ArrayList java.util import java.util.Collections; Collections java.util import java.util.List; List java.util import java.util.Scanner; Scanner java.util import java.util.Stack; Stack java.util class Main {
	public static void main(String[] a) throws IOException {

		Scanner scan = new Scanner(System.in);
		int times = scan.nextInt();
		for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String[] a) throws IOException {

		Scanner scan = new Scanner(System.in);
		int times = scan.nextInt();
		for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {

		Scanner scan = new Scanner(System.in);
		int times = scan.nextInt();
		for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int times = scan.nextInt(); times scan.nextInt() scan.nextInt scan for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < times i times i++ i++ i {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int aa = scan.nextInt(); aa scan.nextInt() scan.nextInt scan int b = scan.nextInt(); b scan.nextInt() scan.nextInt scan int c = scan.nextInt(); c scan.nextInt() scan.nextInt scan int twoa = aa * aa; twoa aa * aa aa aa int twob = b * b; twob b * b b b int twoc = c * c; twoc c * c c c if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} twoa == twoc + twob twoa twoc + twob twoc twob {

				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} twob == twoc + twoa twob twoc + twoa twoc twoa {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} twoc == twob + twoa twoc twob + twoa twob twoa {
				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[] a a
import java.io.*;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
import java.util.Stack;

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

		Scanner scan = new Scanner(System.in);
		int times = scan.nextInt();
		for (int i = 0; i < times; i++) {
			int aa = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();

			int twoa = aa * aa;
			int twob = b * b;
			int twoc = c * c;
			if (twoa == twoc + twob) {

				System.out.println("YES");
			} else if (twob == twoc + twoa) {
				System.out.println("YES");
			} else if (twoc == twob + twoa) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}