

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

class Main{
    public static void main(String[] a) throws IOException{

//    	for(int i=1; i<=9; i++) {
//    		for (int j=1; j<=9; j++) {
//    			System.out.println(i + "x" + j + "=" + (i*j));
//    		}
//    	}

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        }


    }


    private static boolean pitagoras(int a, int b, int c) {
    	return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String[] a) throws IOException{

//    	for(int i=1; i<=9; i++) {
//    		for (int j=1; j<=9; j++) {
//    			System.out.println(i + "x" + j + "=" + (i*j));
//    		}
//    	}

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        }


    }


    private static boolean pitagoras(int a, int b, int c) {
    	return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
    }
} Main public static void main(String[] a) throws IOException{

//    	for(int i=1; i<=9; i++) {
//    		for (int j=1; j<=9; j++) {
//    			System.out.println(i + "x" + j + "=" + (i*j));
//    		}
//    	}

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        }


    } main {

//    	for(int i=1; i<=9; i++) {
//    		for (int j=1; j<=9; j++) {
//    			System.out.println(i + "x" + j + "=" + (i*j));
//    		}
//    	}

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        }


    } try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        } {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        } BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) BufferedReader br = new BufferedReader(new InputStreamReader(System.in)) new BufferedReader(new InputStreamReader(System.in)) String line1 = br.readLine(); line1 br.readLine() br.readLine br int N = Integer.parseInt(line1); N Integer.parseInt(line1) Integer.parseInt Integer line1 for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		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 line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            } {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            } String line = br.readLine(); line br.readLine() br.readLine br String[] tmp = line.split(" "); tmp line.split(" ") line.split line " " int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])}; tri {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])} Integer.parseInt(tmp[0]) Integer.parseInt Integer tmp[0] tmp 0 Integer.parseInt(tmp[1]) Integer.parseInt Integer tmp[1] tmp 1 Integer.parseInt(tmp[2]) Integer.parseInt Integer tmp[2] tmp 2 if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	} pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) pitagoras(tri[0], tri[1], tri[2]) pitagoras tri[0] tri 0 tri[1] tri 1 tri[2] tri 2 pitagoras(tri[1], tri[2], tri[0]) pitagoras tri[1] tri 1 tri[2] tri 2 tri[0] tri 0 pitagoras(tri[2], tri[0], tri[1]) pitagoras tri[2] tri 2 tri[0] tri 0 tri[1] tri 1 {

            		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[] a a private static boolean pitagoras(int a, int b, int c) {
    	return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
    } pitagoras {
    	return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
    } return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false; Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) Math.pow(a, 2) + Math.pow(b, 2) Math.pow(a, 2) Math.pow Math a 2 Math.pow(b, 2) Math.pow Math b 2 Math.pow(c, 2) Math.pow Math c 2 true false int a a int b b int c c


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

class Main{
    public static void main(String[] a) throws IOException{

//    	for(int i=1; i<=9; i++) {
//    		for (int j=1; j<=9; j++) {
//    			System.out.println(i + "x" + j + "=" + (i*j));
//    		}
//    	}

        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {

            String line1 = br.readLine();
            int N = Integer.parseInt(line1);

            for (int i=0; i<N; i++) {
            	String line = br.readLine();
            	String[] tmp = line.split(" ");
            	int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};


            	if (pitagoras(tri[0], tri[1], tri[2])
            			|| pitagoras(tri[1], tri[2], tri[0])
            			|| pitagoras(tri[2], tri[0], tri[1]) ) {

            		System.out.println("YES");
            	} else {
            		System.out.println("NO");
            	}

            }
        }


    }


    private static boolean pitagoras(int a, int b, int c) {
    	return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
    }
}