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

public class Main{

	public static void main(String[] args) throws IOException {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	}

} 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) throws IOException {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	}

} Main public static void main(String[] args) throws IOException {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	} main {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	} String str; str int a a b b c; c BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); br new BufferedReader(new InputStreamReader(System.in)) str = br.readLine() str br.readLine() br.readLine br int N = Integer.parseInt(str); N Integer.parseInt(str) Integer.parseInt Integer str for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		} int i = 0; int i = 0; i 0 i < N i N i++ i++ i {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		} {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		} str = br.readLine() str br.readLine() br.readLine br String[] num = str.split(" ", 0); num str.split(" ", 0) str.split str " " 0 a = Integer.parseInt(num[0]) a Integer.parseInt(num[0]) Integer.parseInt Integer num[0] num 0 b = Integer.parseInt(num[1]) b Integer.parseInt(num[1]) Integer.parseInt Integer num[1] num 1 c = Integer.parseInt(num[2]) c Integer.parseInt(num[2]) Integer.parseInt Integer num[2] num 2 if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			} a >= b && a >= c a >= b a b a >= c a c {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				} a * a == b * b + c * c a * a a a b * b + c * c b * b b b c * c c c {
					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" {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			} if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				} b >= a && b >= c b >= a b a b >= c b c {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					} b * b == a * a + c * c b * b b b a * a + c * c a * a a a c * c c c {
						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" {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				} if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					} c >= a && c >= b c >= a c a c >= b c b {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					} if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						} c * c == a * a + b * b c * c c c a * a + b * b a * a a a b * b b b {
							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 {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	}

} public class Main{

	public static void main(String[] args) throws IOException {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	}

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

public class Main{

	public static void main(String[] args) throws IOException {
		//variety
		String str;
		int a, b, c;

		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		str = br.readLine();
		int N = Integer.parseInt(str);
		for (int i = 0; i < N; i++) {
			str = br.readLine();
			String[] num = str.split(" ", 0);
			a = Integer.parseInt(num[0]);
			b = Integer.parseInt(num[1]);
			c = Integer.parseInt(num[2]);
			if (a >= b && a >= c) {
				if (a * a == b * b + c * c) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			} else {
				if (b >= a && b >= c) {
					if (b * b == a * a + c * c) {
						System.out.println("YES");
					} else {
						System.out.println("NO");
					}
				} else {
					if (c >= a && c >= b) {
						if (c * c == a * a + b * b) {
							System.out.println("YES");
						} else {
							System.out.println("NO");
						}
					}
				}
			}
		}
	}

}