import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

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

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                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.Arrays; Arrays java.util public class Main {

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

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        }
    }
} Main public static void main(String[] args) throws NumberFormatException, IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                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++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                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++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        } int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        } {
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        } String[] tmpStr = br.readLine().split(" "); tmpStr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] linesq = new int[3]; linesq new int[3] 3 for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            } int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            } {
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            } linesq[j] = Integer.parseInt(tmpStr[j]) linesq[j] linesq j Integer.parseInt(tmpStr[j]) Integer.parseInt Integer tmpStr[j] tmpStr j linesq[j] *= linesq[j] linesq[j] linesq j linesq[j] linesq j Arrays.sort(linesq) Arrays.sort Arrays linesq if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            } linesq[2] == linesq[1] + linesq[0] linesq[2] linesq 2 linesq[1] + linesq[0] linesq[1] linesq 1 linesq[0] linesq 0 {
                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 br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        }
    }
} public class Main {

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

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        }
    }
} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;

public class Main {

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

        int n = Integer.parseInt(br.readLine());

        for(int i = 0; i < n; i++){
            String[] tmpStr = br.readLine().split(" ");
            int[] linesq = new int[3];

            for(int j = 0; j < 3; j++){
                linesq[j] = Integer.parseInt(tmpStr[j]);
                linesq[j] *= linesq[j];
            }

            Arrays.sort(linesq);

            if(linesq[2] == linesq[1] + linesq[0] ){
                System.out.println("YES");
            }
            else {
                System.out.println("NO");
            }
        }
    }
}