import java.util.Scanner;

public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}
} import java.util.Scanner; Scanner java.util public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} run {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int T = sc.nextInt(); int T = sc.nextInt(); T sc.nextInt() sc.nextInt sc 0 < T 0 T T-- T-- T {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				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 a *= a a a b *= b b b c *= c c c if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} a + b == c || a + c == b || b + c == a a + b == c || a + c == b || b + c == a a + b == c a + b a b c a + c == b a + c a c b b + c == a b + c b c a {
				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" public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}
} public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}
} Main
import java.util.Scanner;

public class Main {
	void run() {
		Scanner sc = new Scanner(System.in);

		for (int T = sc.nextInt(); 0 < T; T--) {
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			a *= a;
			b *= b;
			c *= c;
			if (a + b == c || a + c == b || b + c == a) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}

	public static void main(String[] args) {
		new Main().run();
	}
}