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

public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					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 void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} Main public static void main(String[] args) {
		print();
	} main {
		print();
	} print() print String[] args args private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} print {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	} BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					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 {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} String str = br.readLine(); str br.readLine() br.readLine br int numberOfReceivedDataset = Integer.parseInt(str); numberOfReceivedDataset Integer.parseInt(str) Integer.parseInt Integer str for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} int i = 1; int i = 1; i 1 i <= numberOfReceivedDataset i numberOfReceivedDataset i++ i++ i {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} str = br.readLine() str br.readLine() br.readLine br String[] nums = str.split(" ", 0); nums str.split(" ", 0) str.split str " " 0 int x = Integer.parseInt(nums[0]); x Integer.parseInt(nums[0]) Integer.parseInt Integer nums[0] nums 0 int y = Integer.parseInt(nums[1]); y Integer.parseInt(nums[1]) Integer.parseInt Integer nums[1] nums 1 int z = Integer.parseInt(nums[2]); z Integer.parseInt(nums[2]) Integer.parseInt Integer nums[2] nums 2 int xToSecondPower = x * x; xToSecondPower x * x x x int yToSecondPower = y * y; yToSecondPower y * y y y int zToSecondPower = z * z; zToSecondPower z * z z z if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} xToSecondPower + yToSecondPower == zToSecondPower xToSecondPower + yToSecondPower xToSecondPower yToSecondPower zToSecondPower {
					System.out.println("YES");
				} System.out.println("YES") System.out.println System.out System System.out "YES" if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} zToSecondPower + yToSecondPower == xToSecondPower zToSecondPower + yToSecondPower zToSecondPower yToSecondPower xToSecondPower {
					System.out.println("YES");
				} System.out.println("YES") System.out.println System.out System System.out "YES" if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} zToSecondPower + xToSecondPower == yToSecondPower zToSecondPower + xToSecondPower zToSecondPower xToSecondPower yToSecondPower {
					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" public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
} public class Main {
	public static void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					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 void main(String[] args) {
		print();
	}

	private static void print() {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		try {
			String str = br.readLine();
			int numberOfReceivedDataset = Integer.parseInt(str);

			for (int i = 1; i <= numberOfReceivedDataset; i++) {
				str = br.readLine();
				String[] nums = str.split(" ", 0);

				int x = Integer.parseInt(nums[0]);
				int y = Integer.parseInt(nums[1]);
				int z = Integer.parseInt(nums[2]);

				int xToSecondPower = x * x;
				int yToSecondPower = y * y;
				int zToSecondPower = z * z;

				if (xToSecondPower + yToSecondPower == zToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
					System.out.println("YES");
				} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
		} catch (IOException e) {
			e.printStackTrace();
		}
	}
}