
import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a, b, c, n, temp;
		Boolean is_changed = true;
		n = in.nextInt();
		for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		}
	}
} import java.util.Scanner; Scanner java.util class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a, b, c, n, temp;
		Boolean is_changed = true;
		n = in.nextInt();
		for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		}
	}
} Main public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a, b, c, n, temp;
		Boolean is_changed = true;
		n = in.nextInt();
		for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		}
	} main {
		Scanner in = new Scanner(System.in);
		int a, b, c, n, temp;
		Boolean is_changed = true;
		n = in.nextInt();
		for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		}
	} Scanner in = new Scanner(System.in); in new Scanner(System.in) int a a b b c c n n temp; temp Boolean is_changed = true; is_changed true n = in.nextInt() n in.nextInt() in.nextInt in for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		} {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		} a = in.nextInt() a in.nextInt() in.nextInt in b = in.nextInt() b in.nextInt() in.nextInt in c = in.nextInt() c in.nextInt() in.nextInt in while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			} is_changed == true is_changed true {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			} is_changed = false is_changed false if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				} a > b a b {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				} temp = a temp a a = b a b b = temp b temp is_changed = true is_changed true if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				} b > c b c {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				} temp = b temp b b = c b c c = temp c temp is_changed = true is_changed true if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} a * a + b * b - c * c == 0 a * a + b * b - c * c a * a + b * b a * a a a b * b b b c * c c c 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" is_changed = true is_changed true String[] args args

import java.util.Scanner;

class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a, b, c, n, temp;
		Boolean is_changed = true;
		n = in.nextInt();
		for (int i = 0; i < n; i++) {
			a = in.nextInt();
			b = in.nextInt();
			c = in.nextInt();
			while (is_changed == true) {
				is_changed = false;
				if (a > b) {
					temp = a;
					a = b;
					b = temp;
					is_changed = true;
				}
				if (b > c) {
					temp = b;
					b = c;
					c = temp;
					is_changed = true;
				}
			}
			if (a * a + b * b - c * c == 0) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
			is_changed = true;
		}
	}
}