import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

			if((a*a)==((b*b)+(c*c))){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} import java.util.Scanner; Scanner java.util class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

			if((a*a)==((b*b)+(c*c))){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

			if((a*a)==((b*b)+(c*c))){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

			if((a*a)==((b*b)+(c*c))){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

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

			if((a*a)==((b*b)+(c*c))){
				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){
					int s = a;
					a = b;
					b = s;
			} a<b a b {
					int s = a;
					a = b;
					b = s;
			} int s = a; s a a = b a b b = s b s if(a<c){
					int s = a;
					a = c;
					c = s;
			} a<c a c {
					int s = a;
					a = c;
					c = s;
			} int s = a; s a a = c a c c = s c s 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("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
import java.util.Scanner;

class Main{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		while(n-- > 0){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			
			if(a<b){
					int s = a;
					a = b;
					b = s;
			}
			if(a<c){
					int s = a;
					a = c;
					c = s;
			}

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