import java.util.*;

class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	while(n!=0){

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	}
    }
} import java.util.*; util.* java class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	while(n!=0){

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	}
    }
} Main public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	while(n!=0){

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	}
    } main {
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	while(n!=0){

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	}
    } 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[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	} n!=0 n 0 {

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	} int[] num = new int[3]; num new int[3] 3 int max = 0; max 0 for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    } {
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    } num[i] = sc.nextInt() num[i] num i sc.nextInt() sc.nextInt sc if(num[i]>max){max = num[i];} num[i]>max num[i] num i max {max = num[i];} max = num[i] max num[i] num i int sum = 0; sum 0 for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    } int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    } {
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    } if(num[i]!=max){
		    sum += num[i]*num[i];
		} num[i]!=max num[i] num i max {
		    sum += num[i]*num[i];
		} sum += num[i]*num[i] sum num[i]*num[i] num[i] num i num[i] num i String ans = "NO"; ans "NO" if(max*max==sum){ans = "YES";} max*max==sum max*max max max sum {ans = "YES";} ans = "YES" ans "YES" System.out.println(ans) System.out.println System.out System System.out ans n-- n String[] args args
import java.util.*;

class Main{
    public static void main(String[] args){
	Scanner sc = new Scanner(System.in);

	int n = sc.nextInt();
	while(n!=0){

	    int[] num = new int[3];
	    int max = 0;
	    for(int i=0; i<3; i++){
		num[i] = sc.nextInt();
		if(num[i]>max){max = num[i];}
	    }

	    //String ans = "NO";
	    int sum = 0;
	    for(int i=0; i<3; i++){
		if(num[i]!=max){
		    sum += num[i]*num[i];
		}
	    }
	    String ans = "NO";
	    if(max*max==sum){ans = "YES";}



	    //int[] num2 = new int[3];
	    //num2[0] = num[0]*num[0];
	    //num2[1] = num[1]*num[1];
	    //num2[2] = num[2]*num[2];
	    //if(num2[0]==(num[1]+num[2])){ans="YES";}
	    //if(num2[1]==(num[0]+num[2])){ans="YES";}
	    //if(num2[2]==(num[0]+num[1])){ans="YES";}

	    System.out.println(ans);
	    n--;
	}
    }
}