import java.util.*;
import java.text.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main
}//class import java.util.*; util.* java import java.text.*; text.* java public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main
}//class Main public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main main {
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   } Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = Integer.parseInt(sc.nextLine()); n Integer.parseInt(sc.nextLine()) Integer.parseInt Integer sc.nextLine() sc.nextLine sc String[] sArr; sArr int[] iArr = new int[3]; iArr new int[3] 3 while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      } n > 0 n 0 {
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      } sArr = sc.nextLine().split(" ") sArr sc.nextLine().split(" ") sc.nextLine().split sc.nextLine() sc.nextLine sc " " iArr[0] = Integer.parseInt(sArr[0]) iArr[0] iArr 0 Integer.parseInt(sArr[0]) Integer.parseInt Integer sArr[0] sArr 0 iArr[1] = Integer.parseInt(sArr[1]) iArr[1] iArr 1 Integer.parseInt(sArr[1]) Integer.parseInt Integer sArr[1] sArr 1 iArr[2] = Integer.parseInt(sArr[2]) iArr[2] iArr 2 Integer.parseInt(sArr[2]) Integer.parseInt Integer sArr[2] sArr 2 Arrays.sort(iArr) Arrays.sort Arrays iArr if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         } Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2) Math.pow(iArr[2], 2) Math.pow Math iArr[2] iArr 2 2 Math.pow(iArr[0],2) + Math.pow(iArr[1],2) Math.pow(iArr[0],2) Math.pow Math iArr[0] iArr 0 2 Math.pow(iArr[1],2) Math.pow Math iArr[1] iArr 1 2 {
            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" n-- n String[] args args public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main
}//class public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main
}//class Main
import java.util.*;
import java.text.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
   public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n = Integer.parseInt(sc.nextLine());
      String[] sArr;
      int[] iArr = new int[3];
      
      
      while(n > 0){
         sArr = sc.nextLine().split(" ");
         iArr[0] = Integer.parseInt(sArr[0]);
         iArr[1] = Integer.parseInt(sArr[1]);
         iArr[2] = Integer.parseInt(sArr[2]);
         
         Arrays.sort(iArr);
         
         if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
            System.out.println("YES");
         }else{
            System.out.println("NO");
         }
         n--;
      }
   }//main
}//class
