#include <iostream>
#include <math.h>

using namespace std;

int main(int argc, char const* argv[])
{
	double a,b,c,n;

	cin >> n;

	for( int i = 0;i < n;i++ ){
		cin >> a >> b >> c;

		if( a == sqrt( b * b + c * c ) || b == sqrt( a * a + c * c ) || c == sqrt( a * a + b * b ) ) cout << "YES" << endl;
		else cout << "NO" << endl;
	}

	return 0;

}