import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} import java.io.*; io.* java import java.util.*; util.* java public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} main {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	} try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		} catch (Exception e) {
			e.printStackTrace();
		} Exception e {
			e.printStackTrace();
		} e.printStackTrace() e.printStackTrace e {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); in new BufferedReader(new InputStreamReader(System.in)) int T = Integer.parseInt(in.readLine()); T Integer.parseInt(in.readLine()) Integer.parseInt Integer in.readLine() in.readLine in for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} int i = 0; int i = 0; i 0 i < T i T i++ i++ i {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} String[] sar = in.readLine().split(" "); sar in.readLine().split(" ") in.readLine().split in.readLine() in.readLine in " " int[] side = new int[3]; side new int[3] 3 for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				} int j = 0; int j = 0; j 0 j < 3 j 3 j++ j++ j {
					side[j] = Integer.parseInt(sar[j]);
				} {
					side[j] = Integer.parseInt(sar[j]);
				} side[j] = Integer.parseInt(sar[j]) side[j] side j Integer.parseInt(sar[j]) Integer.parseInt Integer sar[j] sar j Arrays.sort(side) Arrays.sort Arrays side if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} side[0] * side[0] + side[1] * side[1] == side[2] * side[2] side[0] * side[0] + side[1] * side[1] side[0] * side[0] side[0] side 0 side[0] side 0 side[1] * side[1] side[1] side 1 side[1] side 1 side[2] * side[2] side[2] side 2 side[2] side 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 class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
} Main
import java.io.*;
import java.util.*;

public class Main {
	public static void main(String[] args) {
		try {
			BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
			int T = Integer.parseInt(in.readLine());
			for (int i = 0; i < T; i++) {
				String[] sar = in.readLine().split(" ");
				int[] side = new int[3];
				for (int j = 0; j < 3; j++) {
					side[j] = Integer.parseInt(sar[j]);
				}
				Arrays.sort(side);
				if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}