
import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} 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();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				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 boolean tri[] = new boolean[N]; tri new boolean[N] N int a a b b c c x; x for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		} {
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		} a = sc.nextInt() a sc.nextInt() sc.nextInt sc b = sc.nextInt() b sc.nextInt() sc.nextInt sc c = sc.nextInt() c sc.nextInt() sc.nextInt sc if(a < b){
				x = a;
				a = b;
				b = x;
			} a < b a b {
				x = a;
				a = b;
				b = x;
			} x = a x a a = b a b b = x b x if(a < c){
				x = a;
				a = c;
				c = x;
			} a < c a c {
				x = a;
				a = c;
				c = x;
			} x = a x a a = c a c c = x c x if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			} a*a == (b*b) + (c*c) a*a a a (b*b) + (c*c) (b*b) b b (c*c) c c {
				tri[i] = true;
			} tri[i] = true tri[i] tri i true {
				tri[i] = false;
			} tri[i] = false tri[i] tri i false for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} tri[i] == true tri[i] tri i true {
				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[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main

import java.util.Scanner;

public class Main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		boolean tri[] = new boolean[N];
		int a,b,c,x;
		for(int i = 0; i < N; i++){
			a = sc.nextInt();
			b = sc.nextInt();
			c = sc.nextInt();
			if(a < b){
				x = a;
				a = b;
				b = x;
			}
			if(a < c){
				x = a;
				a = c;
				c = x;
			}
			if(a*a == (b*b) + (c*c)){
				tri[i] = true;
			} else {
				tri[i] = false;
			}
		}
		for(int i = 0; i < N; i++){
			if(tri[i] == true){
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}