import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}

    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}

    }
} Main public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}

    } main {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}

    } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int x; x int y; y int z; z String line = br.readLine(); line br.readLine() br.readLine br line = br.readLine() line br.readLine() br.readLine br while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		} line != null line null {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		} String strArray[] = line.split(" "); strArray line.split(" ") line.split line " " x = Integer.valueOf(strArray[0]) x Integer.valueOf(strArray[0]) Integer.valueOf Integer strArray[0] strArray 0 y = Integer.valueOf(strArray[1]) y Integer.valueOf(strArray[1]) Integer.valueOf Integer strArray[1] strArray 1 z = Integer.valueOf(strArray[2]) z Integer.valueOf(strArray[2]) Integer.valueOf Integer strArray[2] strArray 2 String Anser = "NO"; Anser "NO" if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			} x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x)) x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x)) x * x == (y * y + z * z) x * x x x (y * y + z * z) y * y y y z * z z z (y * y == (x * x + z * z)) y * y y y (x * x + z * z) x * x x x z * z z z (z * z == (y * y + x * x)) z * z z z (y * y + x * x) y * y y y x * x x x {
				Anser = "YES";
			} Anser = "YES" Anser "YES" System.out.println(Anser) System.out.println System.out System System.out Anser line = br.readLine() line br.readLine() br.readLine br String[] a a
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

class Main{
    public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????????????´????????°????????´?§?????§???¢?????????
			String Anser = "NO";
			if (x * x == (y * y + z * z)
					|| (y * y == (x * x + z * z))
					|| (z * z == (y * y + x * x))) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}

    }
}