public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	}

} Main public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	} main {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	} java.util.Scanner sc = new java.util.Scanner(System.in); sc new java.util.Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		} int a = sc.nextInt(); a sc.nextInt() sc.nextInt sc int b = sc.nextInt(); b sc.nextInt() sc.nextInt sc int c = sc.nextInt(); c sc.nextInt() sc.nextInt sc if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			} a >= b && a >= c a >= b a b a >= c a c {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO"); a*a == b*b + c*c a*a a a b*b + c*c b*b b b c*c c c System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			} b >= c && b >= a b >= c b c b >= a b a {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO"); b*b == c*c + a*a b*b b b c*c + a*a c*c c c a*a a a System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			} if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO"); c*c == a*a + b*b c*c c c a*a + b*b a*a a a b*b b b System.out.println("YES") System.out.println System.out System System.out "YES" 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) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	}

} public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	}

} Main
public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		java.util.Scanner sc = new java.util.Scanner(System.in);
		int n = sc.nextInt();
		for (int i = 0; i < n; i++) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();

			if (a >= b && a >= c) {
				if (a*a == b*b + c*c) System.out.println("YES");
				else System.out.println("NO");
			} else if (b >= c && b >= a) {
				if (b*b == c*c + a*a) System.out.println("YES");
				else System.out.println("NO");
			} else { // c >= a && c >= b
				if (c*c == a*a + b*b) System.out.println("YES");
				else System.out.println("NO");
			}
		}
	}

}