import java.io.*;
import java.util.*;
public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} main {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	} BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); r new BufferedReader(new InputStreamReader(System.in)) int n = Integer.valueOf(r.readLine()); n Integer.valueOf(r.readLine()) Integer.valueOf Integer r.readLine() r.readLine r for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				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 s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		} String s = r.readLine(); s r.readLine() r.readLine r int a = s.indexOf(" "); a s.indexOf(" ") s.indexOf s " " int z = s.lastIndexOf(" "); z s.lastIndexOf(" ") s.lastIndexOf s " " int[] arr = new int[3]; arr new int[3] 3 arr[0] = Integer.valueOf(s.substring(0, a)) arr[0] arr 0 Integer.valueOf(s.substring(0, a)) Integer.valueOf Integer s.substring(0, a) s.substring s 0 a arr[1] = Integer.valueOf(s.substring(a+1, z)) arr[1] arr 1 Integer.valueOf(s.substring(a+1, z)) Integer.valueOf Integer s.substring(a+1, z) s.substring s a+1 a 1 z arr[2] = Integer.valueOf(s.substring(z+1)) arr[2] arr 2 Integer.valueOf(s.substring(z+1)) Integer.valueOf Integer s.substring(z+1) s.substring s z+1 z 1 Arrays.sort(arr) Arrays.sort Arrays arr if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			} (arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1] (arr[2] * arr[2]) arr[2] arr 2 arr[2] arr 2 arr[0] * arr[0] + arr[1] * arr[1] arr[0] * arr[0] arr[0] arr 0 arr[0] arr 0 arr[1] * arr[1] arr[1] arr 1 arr[1] arr 1 {
				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 IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
} Main
import java.io.*;
import java.util.*;
public class Main {
	public static void main(String args[]) throws IOException {
		BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
		int n = Integer.valueOf(r.readLine());
		for(int i = 0; i < n; i++) {
			String s = r.readLine();
			int a = s.indexOf(" ");
			int z = s.lastIndexOf(" ");
			int[] arr = new int[3];
			arr[0] = Integer.valueOf(s.substring(0, a));
			arr[1] = Integer.valueOf(s.substring(a+1, z));
			arr[2] = Integer.valueOf(s.substring(z+1));
			Arrays.sort(arr);
			if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {
				System.out.println("YES");
			} else {
				System.out.println("NO");
			}
		}
	}
}