import java.util.*;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	}
} import java.util.*; util.* java public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	} main {
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int num = sc.nextInt(); num sc.nextInt() sc.nextInt sc while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		} num != 0 num 0 {
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		} ArrayList<Integer> tri = new ArrayList<Integer>(); tri new ArrayList<Integer>() tri.add(sc.nextInt()) tri.add tri sc.nextInt() sc.nextInt sc tri.add(sc.nextInt()) tri.add tri sc.nextInt() sc.nextInt sc tri.add(sc.nextInt()) tri.add tri sc.nextInt() sc.nextInt sc Collections.sort(tri) Collections.sort Collections tri if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			} (Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2) (Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2)) Math.pow(tri.get(0),2) Math.pow Math tri.get(0) tri.get tri 0 2 Math.pow(tri.get(1),2) Math.pow Math tri.get(1) tri.get tri 1 2 Math.pow(tri.get(2),2) Math.pow Math tri.get(2) tri.get tri 2 2 {
				System.out.println("NO");
			} System.out.println("NO") System.out.println System.out System System.out "NO" {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" num-- num sc.close() sc.close sc String args[] args public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	}
} public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	}
} Main
import java.util.*;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int num = sc.nextInt();
		
		while(num != 0){
			ArrayList<Integer> tri = new ArrayList<Integer>();
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			tri.add(sc.nextInt());
			Collections.sort(tri);
			if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){
				System.out.println("NO");
			}else{
				System.out.println("YES");
			}
			num--;
		}
		sc.close();
	}
}