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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	} main {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int firstNumber = scan.nextInt(); firstNumber scan.nextInt() scan.nextInt scan int i[] = new int[3]; i new int[3] 3 for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int k = 0; int k = 0; k 0 k < firstNumber k firstNumber k++ k++ k {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			} int j = 0; int j = 0; j 0 j < i.length j i.length i i.length j++ j++ j {
				i[j] = scan.nextInt();
			} {
				i[j] = scan.nextInt();
			} i[j] = scan.nextInt() i[j] i j scan.nextInt() scan.nextInt scan Arrays.sort(i) Arrays.sort Arrays i if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} (i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0]) (i[2] * i[2]) i[2] i 2 i[2] i 2 (i[1] * i[1]) + (i[0] * i[0]) (i[1] * i[1]) i[1] i 1 i[1] i 1 (i[0] * i[0]) i[0] i 0 i[0] i 0 {
				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 scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	}
} Main

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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int firstNumber = scan.nextInt();
		int i[] = new int[3];
		for (int k = 0; k < firstNumber; k++) {
			for (int j = 0; j < i.length; j++) {
				i[j] = scan.nextInt();
			}
			Arrays.sort(i);
			if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}

	}
}