import java.util.*;
public class Main {
	public static void main(String...args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	}
} import java.util.*; util.* java public class Main {
	public static void main(String...args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String...args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	} main {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			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++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		} {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		} float[] x = new float[3]; x new float[3] 3 x[0] = sc.nextFloat() x[0] x 0 sc.nextFloat() sc.nextFloat sc x[1] = sc.nextFloat() x[1] x 1 sc.nextFloat() sc.nextFloat sc x[2] = sc.nextFloat() x[2] x 2 sc.nextFloat() sc.nextFloat sc Arrays.sort(x) Arrays.sort Arrays x float a a b b c c d d e e f = 0; f 0 a = x[0]/3.0f a x[0]/3.0f x[0] x 0 3.0f b = x[1]/4.0f b x[1]/4.0f x[1] x 1 4.0f c = x[2]/5.0f c x[2]/5.0f x[2] x 2 5.0f d = x[0]/5.0f d x[0]/5.0f x[0] x 0 5.0f e = x[1]/12.0f e x[1]/12.0f x[1] x 1 12.0f f = x[2]/13.0f f x[2]/13.0f x[2] x 2 13.0f if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			} a == b && b == c a == b a b b == c b c {
				System.out.println("YES");
			} System.out.println("YES") System.out.println System.out System System.out "YES" if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			} d == e && e == f d == e d e e == f e f {
				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();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String...args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	}
} Main
import java.util.*;
public class Main {
	public static void main(String...args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		for(int i = 0; i < N; i++) {
			float[] x = new float[3];
			x[0] = sc.nextFloat();
			x[1] = sc.nextFloat();
			x[2] = sc.nextFloat();
			Arrays.sort(x);
			float a,b,c,d,e,f = 0;
			// 3:4:5
			a = x[0]/3.0f;
			b = x[1]/4.0f;
			c = x[2]/5.0f;
			// 5:12:13
			d = x[0]/5.0f;
			e = x[1]/12.0f;
			f = x[2]/13.0f;
			if(a == b && b == c) {
				System.out.println("YES");
			}
			else if(d == e && e == f) {
				System.out.println("YES");
			}
			// Not a right angled triangle.
			else {
				System.out.println("NO");
			}
		}
	}
}