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

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	}
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io import java.util.*; util.* java public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	}
} Main public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	} main {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) int N = Integer.parseInt(br.readLine()); N Integer.parseInt(br.readLine()) Integer.parseInt Integer br.readLine() br.readLine br String line = br.readLine(); line br.readLine() br.readLine br for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	} int i=0; int i=0; i 0 i<N i N i++ i++ i {
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	} {
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	} String[] lines = line.split(" "); lines line.split(" ") line.split line " " int a = Integer.parseInt(lines[0]); a Integer.parseInt(lines[0]) Integer.parseInt Integer lines[0] lines 0 int b = Integer.parseInt(lines[1]); b Integer.parseInt(lines[1]) Integer.parseInt Integer lines[1] lines 1 int c = Integer.parseInt(lines[2]); c Integer.parseInt(lines[2]) Integer.parseInt Integer lines[2] lines 2 if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		} a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a a*a+b*b==c*c a*a+b*b a*a a a b*b b b c*c c c a*a+c*c==b*b a*a+c*c a*a a a c*c c c b*b b b b*b+c*c==a*a b*b+c*c b*b b b c*c c c a*a a a {
    			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" line = br.readLine() line br.readLine() br.readLine br String[] args args public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	}
} public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	}
} Main
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    	int N = Integer.parseInt(br.readLine());
    	String line = br.readLine();
    	for(int i=0;i<N;i++){
    		String[] lines = line.split(" ");
    		int a = Integer.parseInt(lines[0]);
    		int b = Integer.parseInt(lines[1]);
    		int c = Integer.parseInt(lines[2]);
    		
    		if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
    			System.out.println("YES");
    		}else{
    			System.out.println("NO");
    		}
    		
    		line = br.readLine();
    	}
	}
}