import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    }
} import java.util.Arrays; Arrays java.util import java.util.Comparator; Comparator java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    }
} Main public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    } main {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    } Scanner scanner = new Scanner(System.in); scanner new Scanner(System.in) while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		} scanner.hasNext() scanner.hasNext scanner {	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		} int count = scanner.nextInt(); count scanner.nextInt() scanner.nextInt scanner for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			} int i = 0; int i = 0; i 0 i<count i count i++ i++ i {
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			} {
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			} double a = scanner.nextInt(); a scanner.nextInt() scanner.nextInt scanner double b = scanner.nextInt(); b scanner.nextInt() scanner.nextInt scanner double c = scanner.nextInt(); c scanner.nextInt() scanner.nextInt scanner double d = a*a; d a*a a a double f = b*b; f b*b b b double g = c*c; g c*c c c if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    } d == f+g || f== d+g || g==d+f d == f+g || f== d+g || g==d+f d == f+g d f+g f g f== d+g f d+g d g g==d+f g d+f d f {
					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[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    }
} public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    }
} Main
import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES");
			    }else{
			    	System.out.println("NO");
			    }
			}
		}
    }
}