import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static int[] a = new int[3];
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		}
	}
	
	public static void solve() {
		Arrays.sort(a);
		System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO");
	}
} import java.util.Arrays; Arrays java.util import java.util.Scanner; Scanner java.util class Main {
	public static int[] a = new int[3];
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		}
	}
	
	public static void solve() {
		Arrays.sort(a);
		System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO");
	}
} Main public static int[] a = new int[3]; a new int[3] 3 public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		}
	} main {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		}
	} Scanner cin = new Scanner(System.in); cin new Scanner(System.in) int n = cin.nextInt(); n cin.nextInt() cin.nextInt cin while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		} 0 != n-- 0 n-- n {
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		} for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			} int i = 0; int i = 0; i 0 i < a.length i a.length a a.length i++ i++ i {
				a[i] = cin.nextInt();
			} {
				a[i] = cin.nextInt();
			} a[i] = cin.nextInt() a[i] a i cin.nextInt() cin.nextInt cin solve() solve String[] args args public static void solve() {
		Arrays.sort(a);
		System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO");
	} solve {
		Arrays.sort(a);
		System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO");
	} Arrays.sort(a) Arrays.sort Arrays a System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO") System.out.println System.out System System.out a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO" a[0] * a[0] + a[1] * a[1] == a[2] * a[2] a[0] * a[0] + a[1] * a[1] a[0] * a[0] a[0] a 0 a[0] a 0 a[1] * a[1] a[1] a 1 a[1] a 1 a[2] * a[2] a[2] a 2 a[2] a 2 "YES" "NO"
import java.util.Arrays;
import java.util.Scanner;

class Main {
	public static int[] a = new int[3];
	public static void main(String[] args) {
		Scanner cin = new Scanner(System.in);
		int n = cin.nextInt();
		while(0 != n--){
			for (int i = 0; i < a.length; i++) {
				a[i] = cin.nextInt();
			}
			solve();
		}
	}
	
	public static void solve() {
		Arrays.sort(a);
		System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO");
	}
}