import java.util.*;
import java.io.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static InputStreamReader reader = new InputStreamReader(System.in);
    static int n, a, b, c;//prepare "number" and "Edge".
    static int A,B,C;
    public static void main(String[] args) {
	
	read();
	
    }
    
    static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read()
}//brock of Main() import java.util.*; util.* java import java.io.*; io.* java public class Main {
    static Scanner sc = new Scanner(System.in);
    static InputStreamReader reader = new InputStreamReader(System.in);
    static int n, a, b, c;//prepare "number" and "Edge".
    static int A,B,C;
    public static void main(String[] args) {
	
	read();
	
    }
    
    static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read()
}//brock of Main() Main static Scanner sc = new Scanner(System.in); sc new Scanner(System.in) static InputStreamReader reader = new InputStreamReader(System.in); reader new InputStreamReader(System.in) static int n n a a b b c;//prepare "number" and "Edge". c static int A A B B C; C public static void main(String[] args) {
	
	read();
	
    } main {
	
	read();
	
    } read() read String[] args args static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read() read {
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    } n = sc.nextInt() n sc.nextInt() sc.nextInt sc int i; i for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for i = 0; i = 0 i 0 i < n i n i++ i++ i {
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for {
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    } 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 if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if a == 0 || b == 0 || c == 0 a == 0 || b == 0 || c == 0 a == 0 a 0 b == 0 b 0 c == 0 c 0 {
		    System.out.println("NO");
		} System.out.println("NO") System.out.println System.out System System.out "NO" if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		     a != 0 && b != 0 && c!= 0 a != 0 && b != 0 && c!= 0 a != 0 a 0 b != 0 b 0 c!= 0 c 0 {
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		} 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 + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    } A == B + C A B + C B C {//compare
			System.out.println("YES");//output
		    } System.out.println("YES") System.out.println System.out System System.out "YES" if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    } B == A + C B A + C A C {//compare
			System.out.println("YES");//output
		    } System.out.println("YES") System.out.println System.out System System.out "YES" if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    } C == A + B C A + B A B {//compare
			System.out.println("YES");//output
		    } 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" return true; true public class Main {
    static Scanner sc = new Scanner(System.in);
    static InputStreamReader reader = new InputStreamReader(System.in);
    static int n, a, b, c;//prepare "number" and "Edge".
    static int A,B,C;
    public static void main(String[] args) {
	
	read();
	
    }
    
    static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read()
}//brock of Main() public class Main {
    static Scanner sc = new Scanner(System.in);
    static InputStreamReader reader = new InputStreamReader(System.in);
    static int n, a, b, c;//prepare "number" and "Edge".
    static int A,B,C;
    public static void main(String[] args) {
	
	read();
	
    }
    
    static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read()
}//brock of Main() Main
import java.util.*;
import java.io.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static InputStreamReader reader = new InputStreamReader(System.in);
    static int n, a, b, c;//prepare "number" and "Edge".
    static int A,B,C;
    public static void main(String[] args) {
	
	read();
	
    }
    
    static boolean read(){
	//	System.out.println("Input the nummber.");
	    n = sc.nextInt();//read "number".
	    int i;
	    for(i = 0; i < n; i++){
		a = sc.nextInt();//read "edge".
		b = sc.nextInt();//read "edge".
		c = sc.nextInt();//read "edge".

		if(a == 0 || b == 0 || c == 0){
		    System.out.println("NO");
		}//end of if

		
		if(a != 0 && b != 0 && c!= 0){
		    A = a * a;//calculate the power of edge of A.
		    B = b * b;//calculate the power of edge of B.
		    C = c * c;//calculate the power of edge of C.
		    if(A == B + C){//compare
			System.out.println("YES");//output
		    }else if(B == A + C){//compare
			System.out.println("YES");//output
		    }else if(C == A + B){//compare
			System.out.println("YES");//output
		    }else{
			System.out.println("NO");
		    }
		}//end of if		    
	    }//end of for
	    return true;
    }//brock of read()
}//brock of Main()