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

public class Main {
	public static int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	}
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} 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 int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	}
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} Main public static int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	} sort {
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	} for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		} int h=nums.length-1; int h=nums.length-1; h nums.length-1 nums.length nums nums.length 1 h>0 h 0 h-- h-- h {
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		} {
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		} for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			} int i=1; int i=1; i 1 i<=h i h i++ i++ i {
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			} {
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			} if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				} nums[i]>nums[i-1] nums[i] nums i nums[i-1] nums i-1 i 1 {
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				} int tmp=nums[i]; tmp nums[i] nums i nums[i]= nums[i-1] nums[i] nums i nums[i-1] nums i-1 i 1 nums[i-1]=tmp nums[i-1] nums i-1 i 1 tmp return nums; nums int[] nums nums public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	} main {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	} BufferedReader br; br br = new BufferedReader(new InputStreamReader(System.in)) br new BufferedReader(new InputStreamReader(System.in)) String str; str try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		} IOException e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} str = br.readLine() str br.readLine() br.readLine br int setNum=Integer.parseInt(str); setNum Integer.parseInt(str) Integer.parseInt Integer str for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			} int h = 0; int h = 0; h 0 h < setNum h setNum h++ h++ h {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			} {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			} int[] num = new int[3]; num new int[3] 3 str = br.readLine() str br.readLine() br.readLine br String[] numbers =str.split(" "); numbers str.split(" ") str.split str " " for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				} int i = 0; int i = 0; i 0 i < numbers.length i numbers.length numbers numbers.length i++ i++ i {
					num[i] = Integer.parseInt(numbers[i]);
				} {
					num[i] = Integer.parseInt(numbers[i]);
				} num[i] = Integer.parseInt(numbers[i]) num[i] num i Integer.parseInt(numbers[i]) Integer.parseInt Integer numbers[i] numbers i num =sort(num) num sort(num) sort num int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2); answer (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2) (int)Math.pow(num[1], 2) Math.pow Math num[1] num 1 2 (int)Math.pow(num[2], 2) Math.pow Math num[2] num 2 2 if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				} answer==(Math.pow(num[0], 2)) answer (Math.pow(num[0], 2)) Math.pow Math num[0] num 0 2 {
					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[] a a public class Main {
	public static int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	}
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} public class Main {
	public static int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	}
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
} Main

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

public class Main {
	public static int[] sort(int[] nums){
		for(int h=nums.length-1;h>0;h--){
			for(int i=1;i<=h;i++){
				if(nums[i]>nums[i-1]){
					int tmp=nums[i];
					nums[i]= nums[i-1];
					nums[i-1]=tmp;
				}
			}
		}
		return nums;
	}
	public static void main(String[] a) {
		BufferedReader br;
		br = new BufferedReader(new InputStreamReader(System.in));

		String str;

		try {
			//data set num
			str = br.readLine();
			int setNum=Integer.parseInt(str);
			for (int h = 0; h < setNum; h++) {
				int[] num = new int[3];
				str = br.readLine();
				String[] numbers =str.split(" ");
				for (int i = 0; i < numbers.length; i++) {
					num[i] = Integer.parseInt(numbers[i]);
				}
				num =sort(num);
				int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
				if(answer==(Math.pow(num[0], 2))){
					System.out.println("YES");
				}else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}

	}
}