import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Arrays;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    }
    
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.StringTokenizer; StringTokenizer java.util import java.util.Arrays; Arrays java.util class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    }
    
} Main public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    } main {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    } BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int n=Integer.parseInt(br.readLine()); n Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        } {
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        } StringTokenizer st=new StringTokenizer(br.readLine()," "); st new StringTokenizer(br.readLine()," ") int array[] =new int[3]; array new int[3] 3 for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken()); int j=0; int j=0; j 0 j<array.length j array.length array array.length j++ j++ j array[j]=Integer.parseInt(st.nextToken()); array[j]=Integer.parseInt(st.nextToken()) array[j] array j Integer.parseInt(st.nextToken()) Integer.parseInt Integer st.nextToken() st.nextToken st Arrays.sort(array) Arrays.sort Arrays array if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO"); Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2) Math.pow(array[0],2)+Math.pow(array[1],2) Math.pow(array[0],2) Math.pow Math array[0] array 0 2 Math.pow(array[1],2) Math.pow Math array[1] array 1 2 Math.pow(array[2], 2) Math.pow Math array[2] array 2 2 System.out.println("YES") System.out.println System.out System System.out "YES" System.out.println("NO") System.out.println System.out System System.out "NO" String[] args args
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Arrays;
class Main {
    
    public static void main(String[] args) throws IOException {
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        int n=Integer.parseInt(br.readLine());
        for(int i=0;i<n;i++){
            StringTokenizer st=new StringTokenizer(br.readLine()," ");
            int array[] =new int[3];
            for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
            Arrays.sort(array);
            if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))
                System.out.println("YES");
            else System.out.println("NO");
        }
    }
    
}