import java.util.*;
public class Main {

	private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	}

	public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} import java.util.*; util.* java public class Main {

	private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	}

	public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} Main private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	} isRightTri {
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	} final double EPS = 1.0e-08; EPS 1.0e-08 double sum = Math.pow(a, 2) + Math.pow(b, 2); sum 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 sum = Math.sqrt(sum) sum Math.sqrt(sum) Math.sqrt Math sum if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		} Math.abs(sum - c) < EPS Math.abs(sum - c) Math.abs Math sum - c sum c EPS {
			return true;
		} return true; true {
			return false;
		} return false; false double a a double b b double c c public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	} doIt {

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n = sc.nextInt(); n sc.nextInt() sc.nextInt sc for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		} int i=0; int i=0; i 0 i < n i n i++ i++ i {
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		} {
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		} double a = sc.nextDouble(); a sc.nextDouble() sc.nextDouble sc double b = sc.nextDouble(); b sc.nextDouble() sc.nextDouble sc double c = sc.nextDouble(); c sc.nextDouble() sc.nextDouble sc if(a > c){
				double temp = a;
				a = c;
				c = temp;
			} a > c a c {
				double temp = a;
				a = c;
				c = temp;
			} double temp = a; temp a a = c a c c = temp c temp if(b > c){
				double temp = b;
				b = c;
				c = temp;
			} b > c b c {
				double temp = b;
				b = c;
				c = temp;
			} double temp = b; temp b b = c b c c = temp c temp if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO"); isRightTri(a,b,c) isRightTri a b c 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" public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	} main {
		Main obj = new Main();
		obj.doIt();

	} Main obj = new Main(); obj new Main() obj.doIt() obj.doIt obj String[] args args public class Main {

	private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	}

	public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} public class Main {

	private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	}

	public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

} Main
import java.util.*;
public class Main {

	private boolean isRightTri(double a, double b, double c){
		final double EPS = 1.0e-08;
		double sum = Math.pow(a, 2) + Math.pow(b, 2);
		sum = Math.sqrt(sum);
		if(Math.abs(sum - c) < EPS){
			return true;
		}
		else{
			return false;
		}
	}

	public void doIt(){

		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i=0; i < n; i++){
			double a = sc.nextDouble();
			double b = sc.nextDouble();
			double c = sc.nextDouble();
			if(a > c){
				double temp = a;
				a = c;
				c = temp;
			}
			if(b > c){
				double temp = b;
				b = c;
				c = temp;
			}
			if(isRightTri(a,b,c))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
	public static void main(String[] args) {
		Main obj = new Main();
		obj.doIt();

	}

}