import java.util.*;

public class Main{
	public static void main(String[] args) {
		new Main().run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
} import java.util.*; util.* java public class Main{
	public static void main(String[] args) {
		new Main().run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
} Main public static void main(String[] args) {
		new Main().run();
	} main {
		new Main().run();
	} new Main().run() new Main().run new Main() String[] args args public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	} run {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	} Scanner sc = new Scanner(System.in); sc new Scanner(System.in) int n; n n = sc.nextInt() n sc.nextInt() sc.nextInt sc while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		} n-->0 n-- n 0 {
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		} int x x y y z; z x = sc.nextInt() x sc.nextInt() sc.nextInt sc y = sc.nextInt() y sc.nextInt() sc.nextInt sc z = sc.nextInt() z sc.nextInt() sc.nextInt sc int a a b b c; c a = Math.min(x,Math.min(y,z)) a Math.min(x,Math.min(y,z)) Math.min Math x Math.min(y,z) Math.min Math y z c = Math.max(x,Math.max(y,z)) c Math.max(x,Math.max(y,z)) Math.max Math x Math.max(y,z) Math.max Math y z b = x+y+z-a-c b x+y+z-a-c x+y+z-a-c x+y+z x+y+z x y z a c System.out.println(a*a+b*b==c*c?"YES":"NO") System.out.println System.out System System.out a*a+b*b==c*c?"YES":"NO" a*a+b*b==c*c a*a+b*b a*a a a b*b b b c*c c c "YES" "NO" public class Main{
	public static void main(String[] args) {
		new Main().run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
} public class Main{
	public static void main(String[] args) {
		new Main().run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
} Main
import java.util.*;

public class Main{
	public static void main(String[] args) {
		new Main().run();
	}
	
	public void run() {
		Scanner sc = new Scanner(System.in); 
		int n;
		n = sc.nextInt();
		while(n-->0){
			int x,y,z;
			x = sc.nextInt();
			y = sc.nextInt();
			z = sc.nextInt();
			
			int a,b,c;
			a = Math.min(x,Math.min(y,z));
			c = Math.max(x,Math.max(y,z));
			b = x+y+z-a-c;
			
			System.out.println(a*a+b*b==c*c?"YES":"NO");
		}
	}
}