import java.util.Scanner;

public class Main {
	public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} main {


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} Scanner sc; sc int y; y int a; a int b; b int c; c sc = new Scanner(System.in) sc new Scanner(System.in) y = sc.nextInt() y sc.nextInt() sc.nextInt sc for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < y i y i++ i++ i {
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} {
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc a = a * a a a * a a a b = b * b b b * b b b c = c * c c c * c c c if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} c == a + b c a + b a b {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} b == a + c b a + c a c {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			} a == b + c a b + c b c {
				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[] atgs atgs public class Main {
	public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

			if(c == a + b){
				System.out.println("YES");
			}else if(b == a + c){
				System.out.println("YES");
			}else if(a == b + c){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main
import java.util.Scanner;

public class Main {
	public static void main(String[] atgs){


		//??????????????°
		Scanner sc;
		int y;
		int a;
		int b;
		int c;

		sc = new Scanner(System.in);		//?????????????????§??\????????????

		y = sc.nextInt();		//???????????°

		for(int i = 0;i < y ; i++){
			a = sc.nextInt();		//??\???????????????????????°?????\??????
			b = sc.nextInt();
			c = sc.nextInt();

			a = a * a;
			b = b * b;
			c = c * c;

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