import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
	public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	}
} import java.util.ArrayList; ArrayList java.util import java.util.Scanner; Scanner java.util public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
	public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	}
} Main public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} Scanner scan = new Scanner(System.in); scan new Scanner(System.in) int N = Integer.valueOf(scan.nextLine()); N Integer.valueOf(scan.nextLine()) Integer.valueOf Integer scan.nextLine() scan.nextLine scan while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} N-- > 0 N-- N 0 {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} String[] data = scan.nextLine().split(" ", 0); data scan.nextLine().split(" ", 0) scan.nextLine().split scan.nextLine() scan.nextLine scan " " 0 int num[] = new int[3]; num new int[3] 3 for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			} int i = 0; int i = 0; i 0 i < 3 i 3 i++ i++ i {
				num[i] = Integer.parseInt(data[i]);
			} {
				num[i] = Integer.parseInt(data[i]);
			} num[i] = Integer.parseInt(data[i]) num[i] num i Integer.parseInt(data[i]) Integer.parseInt Integer data[i] data i num = sortInteger(num) num sortInteger(num) sortInteger num if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2) Math.pow(num[0], 2) Math.pow Math num[0] num 0 2 Math.pow(num[1], 2) + Math.pow(num[2], 2) Math.pow(num[1], 2) Math.pow Math num[1] num 1 2 Math.pow(num[2], 2) Math.pow Math num[2] num 2 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[] args args public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	} sortInteger {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	} int len = num.length; len num.length num num.length for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		} int i = 0; int i = 0; i 0 i < len i len i++ i++ i {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		} {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		} for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			} int j = i+1; int j = i+1; j i+1 i 1 j < len j len j++ j++ j {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			} {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			} if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				} num[i] < num[j] num[i] num i num[j] num j {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				} int tmp = num[i]; tmp num[i] num i num[i] = num[j] num[i] num i num[j] num j num[j] = tmp num[j] num j tmp return num; num int[] num num public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
	public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	}
} public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
	public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	}
} Main
import java.util.ArrayList;
import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int N = Integer.valueOf(scan.nextLine());
		while (N-- > 0) {
			String[] data = scan.nextLine().split(" ", 0);
			int num[] = new int[3];
			for (int i = 0; i < 3; i++) {
				num[i] = Integer.parseInt(data[i]);
			}
			num = sortInteger(num);
			if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
	public static int[] sortInteger(int[] num) {
		int len = num.length;
		for (int i = 0; i < len; i++) {
			for (int j = i+1; j < len; j++) {
				if (num[i] < num[j]) {
					int tmp = num[i];
					num[i] = num[j];
					num[j] = tmp;
				}
			}
		}
		return num;
	}
}