import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) int num; num int a a b b c; c num = scanner.nextInt() num scanner.nextInt() scanner.nextInt scanner for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} a = scanner.nextInt() a scanner.nextInt() scanner.nextInt scanner b = scanner.nextInt() b scanner.nextInt() scanner.nextInt scanner c = scanner.nextInt() c scanner.nextInt() scanner.nextInt scanner if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} ((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0 ((Math.abs(a*a - b*b) - c*c) == 0) (Math.abs(a*a - b*b) - c*c) Math.abs(a*a - b*b) Math.abs Math a*a - b*b a*a a a b*b b b c*c c c 0 (Math.abs(a*a - c*c) - b*b) == 0 (Math.abs(a*a - c*c) - b*b) Math.abs(a*a - c*c) Math.abs Math a*a - c*c a*a a a c*c c c b*b b b 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 scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String args[]) {
		Scanner scanner = new Scanner(System.in);
		int num;
		int a, b, c;

		num = scanner.nextInt();
		for (int i = 0; i < num; i++){
			a = scanner.nextInt();
			b = scanner.nextInt();
			c = scanner.nextInt();
			if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}