import java.io.*;
import java.lang.reflect.Array;
import java.util.Arrays;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} import java.io.*; io.* java import java.lang.reflect.Array; Array java.lang.reflect import java.util.Arrays; Arrays java.util public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} Main public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	} main {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	} try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		} catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		} Exception e {
			// TODO: handle exception
        	System.exit(0);
		} System.exit(0) System.exit System 0 {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			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)) int num = Integer.parseInt(br.readLine()); num Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	} int i = 0; int i = 0; i 0 i < num i num i++ i++ i {
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	} {
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	} String[] in =  br.readLine().split(" ",0); in br.readLine().split(" ",0) br.readLine().split br.readLine() br.readLine br " " 0 int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])}; data {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])} Integer.parseInt(in[0]) Integer.parseInt Integer in[0] in 0 Integer.parseInt(in[1]) Integer.parseInt Integer in[1] in 1 Integer.parseInt(in[2]) Integer.parseInt Integer in[2] in 2 Arrays.sort(data) Arrays.sort Arrays data if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				} data[2] * data[2] == data[1] * data[1] + data[0] * data[0] data[2] * data[2] data[2] data 2 data[2] data 2 data[1] * data[1] + data[0] * data[0] data[1] * data[1] data[1] data 1 data[1] data 1 data[0] * data[0] data[0] data 0 data[0] data 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) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

} Main
import java.io.*;
import java.lang.reflect.Array;
import java.util.Arrays;
public class Main {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
        try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
            int num = Integer.parseInt(br.readLine());         
           	for(int i = 0; i < num; i++){
           		String[] in =  br.readLine().split(" ",0);
           		int[] data  = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
           		Arrays.sort(data);
           		if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
           			System.out.println("YES");
           		}else {
           			System.out.println("NO");
				}
           	}


        }catch (Exception e) {
			// TODO: handle exception
        	System.exit(0);
		}
		
	}

}