import java.util.Arrays;
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	}
	
	private static int lensq(int x, int y) { return sq(x) + sq(y); }
	private static int sq(int n) { return n * n; }
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	}
	
	private static int lensq(int x, int y) { return sq(x) + sq(y); }
	private static int sq(int n) { return n * n; }
} Main public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int N = sc.nextInt(); N sc.nextInt() sc.nextInt sc for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		} ; N-->0 N-- N 0 {
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		} {
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		} int[] l = new int[3]; l new int[3] 3 for (int i = 0; i < 3; i++) l[i] = sc.nextInt(); int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i l[i] = sc.nextInt(); l[i] = sc.nextInt() l[i] l i sc.nextInt() sc.nextInt sc Arrays.sort(l) Arrays.sort Arrays l System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO") System.out.println System.out System System.out lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO" lensq(l[0], l[1]) == sq(l[2]) lensq(l[0], l[1]) lensq l[0] l 0 l[1] l 1 sq(l[2]) sq l[2] l 2 "YES" "NO" String[] args args private static int lensq(int x, int y) { return sq(x) + sq(y); } lensq { return sq(x) + sq(y); } return sq(x) + sq(y); sq(x) + sq(y) sq(x) sq x sq(y) sq y int x x int y y private static int sq(int n) { return n * n; } sq { return n * n; } return n * n; n * n n n int n n public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	}
	
	private static int lensq(int x, int y) { return sq(x) + sq(y); }
	private static int sq(int n) { return n * n; }
} public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	}
	
	private static int lensq(int x, int y) { return sq(x) + sq(y); }
	private static int sq(int n) { return n * n; }
} Main
import java.util.Arrays;
import java.util.Scanner;

public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(;N-->0;)
		{
			int[] l = new int[3];
			for (int i = 0; i < 3; i++) l[i] = sc.nextInt();
			Arrays.sort(l);
			System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO");
		}
	}
	
	private static int lensq(int x, int y) { return sq(x) + sq(y); }
	private static int sq(int n) { return n * n; }
}