import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	}

} import java.io.BufferedReader; BufferedReader java.io import java.io.IOException; IOException java.io import java.io.InputStreamReader; InputStreamReader java.io public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	}

} Main public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	} main {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	} 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 for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		} int i = 0; int i = 0; i 0 i < n i n i++ i++ i {
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		} {
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		} String[] tmpStr = br.readLine().split(" "); tmpStr br.readLine().split(" ") br.readLine().split br.readLine() br.readLine br " " int[] lineLength = new int[3]; lineLength new int[3] 3 int max = 0; max 0 int maxIndex = -1; maxIndex -1 1 for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			} {
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			} lineLength[j] = Integer.parseInt(tmpStr[j]) lineLength[j] lineLength j Integer.parseInt(tmpStr[j]) Integer.parseInt Integer tmpStr[j] tmpStr j if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				} lineLength[j] > max lineLength[j] lineLength j max {
					max = lineLength[j];
					maxIndex = j;
				} max = lineLength[j] max lineLength[j] lineLength j maxIndex = j maxIndex j int sum = 0; sum 0 for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			} {
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			} int sq = lineLength[j] * lineLength[j]; sq lineLength[j] * lineLength[j] lineLength[j] lineLength j lineLength[j] lineLength j if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				} j == maxIndex j maxIndex {
					sum -= sq;
				} sum -= sq sum sq {
					sum += sq;
				} sum += sq sum sq if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			} sum == 0 sum 0 {
				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) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	}

} public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	}

} Main
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {

	public static void main(String[] args) throws NumberFormatException, IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		
		int n = Integer.parseInt(br.readLine());
		
		//???????????\???
		for(int i = 0; i < n; i++){
			String[] tmpStr = br.readLine().split(" ");
			int[] lineLength = new int[3];
			int max = 0;
			int maxIndex = -1;
			
			for(int j = 0; j < 3; j++){
				lineLength[j] = Integer.parseInt(tmpStr[j]);
				if(lineLength[j] > max){
					max = lineLength[j];
					maxIndex = j;
				}
			}
			
			//??´?§?????§???¢?????§??????
			int sum = 0;
			for(int j = 0; j < 3; j++){
				
				int sq = lineLength[j] * lineLength[j];
				if(j == maxIndex){
					sum -= sq;
				}
				else {
					sum += sq;
				}
			}
			
			if(sum == 0){
				System.out.println("YES");
			}
			else {
				System.out.println("NO");
			}
		}
	}

}