#include <bits/stdc++.h>
using namespace std;

bool f(int a, int b, int c) {
	return a * a == b * b + c * c;
}

int main() {
	ios :: sync_with_stdio(false);
	int t; cin >> t;
	while(t --) {
		int a, b, c;
		cin >> a >> b >> c;
		if(f(a, b, c) || f(b, c, a) || f(c, a, b))
			cout << "YES\n";
		else
			cout << "NO\n";
	}
	return 0;
}