import java.io.BufferedReader;
import java.io.IOException;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	} main {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	} BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in)); read new BufferedReader(
                new java.io.InputStreamReader(System.in)) int x = Integer.parseInt(read.readLine()); x Integer.parseInt(read.readLine()) Integer.parseInt Integer read.readLine() read.readLine read for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      } int i=0; int i=0; i 0 i<x i x i++ i++ i {
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      } {
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      } String y=  read.readLine(); y read.readLine() read.readLine read String z [] =y.split(" "); z y.split(" ") y.split y " " int a=Integer.parseInt(z[0]); a Integer.parseInt(z[0]) Integer.parseInt Integer z[0] z 0 int b=Integer.parseInt(z[1]); b Integer.parseInt(z[1]) Integer.parseInt Integer z[1] z 1 int c=Integer.parseInt(z[2]); c Integer.parseInt(z[2]) Integer.parseInt Integer z[2] z 2 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)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       } a==(b+c) a (b+c) b c {
		System.out.println("YES");
       } System.out.println("YES") System.out.println System.out System System.out "YES" if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       } b==(a+c) b (a+c) a c {
   	   System.out.println("YES");
       } System.out.println("YES") System.out.println System.out System System.out "YES" if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       } c==(a+b) c (a+b) a b {
   	   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 NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader read = new BufferedReader(
                new java.io.InputStreamReader(System.in));

       int x = Integer.parseInt(read.readLine());

       for(int i=0;i<x;i++){
       String y=  read.readLine();
       String z [] =y.split(" ");
       //System.out.println(z[2]);
       //System.out.println(x);
	// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?
       int a=Integer.parseInt(z[0]);
       int b=Integer.parseInt(z[1]);
       int c=Integer.parseInt(z[2]);
       a=a*a;
       b=b*b;
       c=c*c;
       if (a==(b+c)){
		System.out.println("YES");
       }else if (b==(a+c)){
   	   System.out.println("YES");
       }else if(c==(a+b)){
   	   System.out.println("YES");
       }else{
  	   System.out.println("NO");
       }
      }
	}

}