import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;


public class Main {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                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.io.PrintWriter; PrintWriter java.io public class Main {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    } main {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    } InputStreamReader isr = new InputStreamReader(System.in); isr new InputStreamReader(System.in) BufferedReader br   = new BufferedReader(isr); br new BufferedReader(isr) PrintWriter out     = new PrintWriter(System.out); out new PrintWriter(System.out) String line; line String[] numList = new String[2]; numList new String[2] 2 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++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        } int i=0; int i=0; i 0 i<n i n i++ i++ i {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        } {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        } line = br.readLine() line br.readLine() br.readLine br numList = line.split(" ") numList line.split(" ") line.split line " " double num0 = Math.pow(Double.parseDouble(numList[0]), 2); num0 Math.pow(Double.parseDouble(numList[0]), 2) Math.pow Math Double.parseDouble(numList[0]) Double.parseDouble Double numList[0] numList 0 2 double num1 = Math.pow(Double.parseDouble(numList[1]), 2); num1 Math.pow(Double.parseDouble(numList[1]), 2) Math.pow Math Double.parseDouble(numList[1]) Double.parseDouble Double numList[1] numList 1 2 double num2 = Math.pow(Double.parseDouble(numList[2]), 2); num2 Math.pow(Double.parseDouble(numList[2]), 2) Math.pow Math Double.parseDouble(numList[2]) Double.parseDouble Double numList[2] numList 2 2 if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            } (num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2) (num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2) (num2 == num0 + num1) num2 num0 + num1 num0 num1 (num0 == num1 + num2) num0 num1 + num2 num1 num2 (num1 == num0 + num2) num1 num0 + num2 num0 num2 {
                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 IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} public class Main {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;


public class Main {
    public static void main(String[] args) throws IOException {
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br   = new BufferedReader(isr);
        PrintWriter out     = new PrintWriter(System.out);
        String line;
        String[] numList = new String[2];
        int n = Integer.parseInt(br.readLine());
        for(int i=0; i<n; i++) {
            line = br.readLine();
            numList = line.split(" ");
            double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
            double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
            double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
            if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
                System.out.println("YES");
            }else {
                System.out.println("NO");
            }
        }
    }
}