import java.util.Scanner;

public class Main{
       public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		}
} import java.util.Scanner; Scanner java.util public class Main{
       public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		}
} Main public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		} main {
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		} int i i j j k k a a b b c; c String[] data; data Scanner scan = new Scanner(System.in); scan new Scanner(System.in) k = scan.nextInt() k scan.nextInt() scan.nextInt scan data = new String[k] data new String[k] k i = 0 i 0 while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        } i < k i k {
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        } a = scan.nextInt() a scan.nextInt() scan.nextInt scan b = scan.nextInt() b scan.nextInt() scan.nextInt scan c = scan.nextInt() c scan.nextInt() scan.nextInt scan 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(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	} a>b && a>c a>b a b a>c a c {
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	} b = b + c b b + c b c if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		} a == b a b {
        			data[i]="YES";
        		} data[i]="YES" data[i] data i "YES" {
        			data[i]="NO";
        		} data[i]="NO" data[i] data i "NO" if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	} b>a && b>c b>a b a b>c b c {
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	} a = a + c a a + c a c if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		} b == a b a {
        			data[i]="YES";
        		} data[i]="YES" data[i] data i "YES" {
        			data[i]="NO";
        		} data[i]="NO" data[i] data i "NO" if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	} c>a && c>b c>a c a c>b c b {
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	} a = a + b a a + b a b if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		} c == a c a {
        			data[i]="YES";
        		} data[i]="YES" data[i] data i "YES" {
        			data[i]="NO";
        		} data[i]="NO" data[i] data i "NO" {
        		data[i]="NO";
        	} data[i]="NO" data[i] data i "NO" i++ i j = 0 j 0 while(j < i){
        	System.out.println(data[j]);
        	j++;
       		} j < i j i {
        	System.out.println(data[j]);
        	j++;
       		} System.out.println(data[j]) System.out.println System.out System System.out data[j] data j j++ j String[] args args public class Main{
       public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		}
} public class Main{
       public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		}
} Main
import java.util.Scanner;

public class Main{
       public static void main(String[] args){
       int i,j,k,a,b,c;
    	String[] data;
 
        Scanner scan = new Scanner(System.in);
        k = scan.nextInt();
        data = new String[k];
        i = 0;
        while(i < k){
        	a = scan.nextInt();
        	b = scan.nextInt();
        	c = scan.nextInt();
        	a=a*a;
        	b=b*b;
        	c=c*c;
        	if(a>b && a>c){
        		b = b + c;
        		if(a == b){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(b>a && b>c){
        		a = a + c;
        		if(b == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else if(c>a && c>b){
        		a = a + b;
        		if(c == a){
        			data[i]="YES";
        		}else{
        			data[i]="NO";
        		}
        	}else{
        		data[i]="NO";
        	}
        	i++;
        }
        
        
        j = 0;
        while(j < i){
        	System.out.println(data[j]);
        	j++;
       		}
       		}
}