import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				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 stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	}
} Main public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	} main {

		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	} Scanner stdin = new Scanner(System.in); stdin new Scanner(System.in) int n = stdin.nextInt(); n stdin.nextInt() stdin.nextInt stdin int[] a = new int[n]; a new int[n] n int[] b = new int[n]; b new int[n] n int[] c = new int[n]; c new int[n] n for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		} {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		} a[i] = stdin.nextInt() a[i] a i stdin.nextInt() stdin.nextInt stdin b[i] = stdin.nextInt() b[i] b i stdin.nextInt() stdin.nextInt stdin c[i] = stdin.nextInt() c[i] c i stdin.nextInt() stdin.nextInt stdin for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		} {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		} if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			} a[i] * a[i] + b[i] * b[i] == c[i] * c[i] a[i] * a[i] + b[i] * b[i] a[i] * a[i] a[i] a i a[i] a i b[i] * b[i] b[i] b i b[i] b i c[i] * c[i] c[i] c i c[i] c i {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			} b[i] * b[i] + c[i] * c[i] == a[i] * a[i] b[i] * b[i] + c[i] * c[i] b[i] * b[i] b[i] b i b[i] b i c[i] * c[i] c[i] c i c[i] c i a[i] * a[i] a[i] a i a[i] a i {

				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			} c[i] * c[i] + a[i] * a[i] == b[i] * b[i] c[i] * c[i] + a[i] * a[i] c[i] * c[i] c[i] c i c[i] c i a[i] * a[i] a[i] a i a[i] a i b[i] * b[i] b[i] b i b[i] b i {
				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 stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	}
} public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	}
} Main
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);
		int n = stdin.nextInt();

		int[] a = new int[n];
		int[] b = new int[n];
		int[] c = new int[n];

		for(int i = 0; i < n; i++) {
			a[i] = stdin.nextInt();
			b[i] = stdin.nextInt();
			c[i] = stdin.nextInt();
		}

		for(int i = 0; i < n; i++) {

			if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {
				System.out.println("YES");
			} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {

				System.out.println("YES");
			} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {
				System.out.println("YES");

			}else {
				System.out.println("NO");

			}


		}
	}
}