import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} import java.io.BufferedReader; BufferedReader java.io import java.io.InputStreamReader; InputStreamReader java.io class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
} Main public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    } main {
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    } String str; str try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	} catch(Exception e){
	    System.exit(0);
	} Exception e {
	    System.exit(0);
	} System.exit(0) System.exit System 0 {
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	} InputStreamReader is = new InputStreamReader(System.in); is new InputStreamReader(System.in) BufferedReader br = new BufferedReader(is); br new BufferedReader(is) String[] strary = new String[3]; strary new String[3] 3 int[] len = new int[3]; len new int[3] 3 int temp; temp str = br.readLine() str br.readLine() br.readLine br int count = Integer.parseInt(str); count Integer.parseInt(str) Integer.parseInt Integer str while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    } (count--) != 0 (count--) count 0 {
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    } str = br.readLine() str br.readLine() br.readLine br strary = str.split(" ") strary str.split(" ") str.split str " " for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		} int i=0; int i=0; i 0 i<3 i 3 i++ i++ i {
		    len[i] = Integer.parseInt(strary[i]);
		} {
		    len[i] = Integer.parseInt(strary[i]);
		} len[i] = Integer.parseInt(strary[i]) len[i] len i Integer.parseInt(strary[i]) Integer.parseInt Integer strary[i] strary i if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		} len[0] > len[1] len[0] len 0 len[1] len 1 {
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		} temp = len[0] temp len[0] len 0 len[0] = len[1] len[0] len 0 len[1] len 1 len[1] = temp len[1] len 1 temp if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		} len[1] > len[2] len[1] len 1 len[2] len 2 {
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		} temp = len[1] temp len[1] len 1 len[1] = len[2] len[1] len 1 len[2] len 2 len[2] = temp len[2] len 2 temp if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO"); (len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]) (len[0]*len[0] + len[1]*len[1]) len[0]*len[0] len[0] len 0 len[0] len 0 len[1]*len[1] len[1] len 1 len[1] len 1 (len[2]*len[2]) len[2] len 2 len[2] len 2 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" String args[] args
import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
    public static void main(String args[]){
	String str;
	try{
	    InputStreamReader is = new InputStreamReader(System.in);
	    BufferedReader br = new BufferedReader(is);
	    String[] strary = new String[3];
	    int[] len = new int[3];
	    int temp;
	    str = br.readLine();
	    int count = Integer.parseInt(str);
	    while((count--) != 0){
		str = br.readLine();
		strary = str.split(" ");
		for(int i=0;i<3;i++){
		    len[i] = Integer.parseInt(strary[i]);
		}
		if(len[0] > len[1]){
		    temp = len[0];
		    len[0] = len[1];
		    len[1] = temp;
		}
		if(len[1] > len[2]){
		    temp = len[1];
		    len[1] = len[2];
		    len[2] = temp;
		}
		if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
		    System.out.println("YES");
		else
		    System.out.println("NO");
	    }
	}
	catch(Exception e){
	    System.exit(0);
	}
    }
}