import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java import java.math.*; math.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    }
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    } main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) 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 count = Integer.parseInt(br.readLine()); count Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        } int i=0; int i=0; i 0 i<count i count i++ i++ i {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        } {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        } String[] line = br.readLine().split(" "); line br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " List<Integer> list = new ArrayList<Integer>(); list new ArrayList<Integer>() list.add(new Integer(line[0])) list.add list new Integer(line[0]) list.add(new Integer(line[1])) list.add list new Integer(line[1]) list.add(new Integer(line[2])) list.add list new Integer(line[2]) Collections.sort(list) Collections.sort Collections list double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); cor Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)) Math.sqrt Math Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2) Math.pow(list.get(0).doubleValue(),2) Math.pow Math list.get(0).doubleValue() list.get(0).doubleValue list.get(0) list.get list 0 2 Math.pow(list.get(1).doubleValue(),2) Math.pow Math list.get(1).doubleValue() list.get(1).doubleValue list.get(1) list.get list 1 2 double ex  = list.get(2).doubleValue(); ex list.get(2).doubleValue() list.get(2).doubleValue list.get(2) list.get list 2 if(cor == ex) System.out.println("YES");
            else  System.out.println("NO"); cor == ex cor ex 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 public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    }
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    }
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;
public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int count = Integer.parseInt(br.readLine());
        for(int i=0;i<count;i++) {
            String[] line = br.readLine().split(" ");
            List<Integer> list = new ArrayList<Integer>();
            list.add(new Integer(line[0]));
            list.add(new Integer(line[1]));
            list.add(new Integer(line[2]));
            Collections.sort(list);
            double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); 
            double ex  = list.get(2).doubleValue();
            if(cor == ex) System.out.println("YES");
            else  System.out.println("NO");
        }
    }
}