import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.Scanner; Scanner java.util public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} main {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	} Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in))); scan new Scanner(new BufferedReader(new InputStreamReader(System.in))) try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		} catch (Exception e) {
			// TODO: handle exception
		} Exception e {
			// TODO: handle exception
		} {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} int t=scan.nextInt(); t scan.nextInt() scan.nextInt scan while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			} t--!=0 t-- t 0 {
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			} int x x y y z; z x=scan.nextInt() x scan.nextInt() scan.nextInt scan y=scan.nextInt() y scan.nextInt() scan.nextInt scan z=scan.nextInt() z scan.nextInt() scan.nextInt scan int a=x*x; a x*x x x int b=y*y; b y*y y y int c=z*z; c z*z z z if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO"); a+b==c a+b a b c System.out.println("YES") System.out.println System.out System System.out "YES" if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO"); b+c==a b+c b c a System.out.println("YES") System.out.println System.out System System.out "YES" if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO"); c+a==b c+a c a b System.out.println("YES") System.out.println System.out System System.out "YES" 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) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));
		try {
			int t=scan.nextInt();
			while(t--!=0){
				int x,y,z;
				x=scan.nextInt();
				y=scan.nextInt();
				z=scan.nextInt();
				int a=x*x;
				int b=y*y;
				int c=z*z;
				if(a+b==c)
					System.out.println("YES");
				else if(b+c==a)
					System.out.println("YES");
				else if(c+a==b)
					System.out.println("YES");
				else
					System.out.println("NO");

			}
		} catch (Exception e) {
			// TODO: handle exception
		}
	}

}