 #include <iostream>
#include <cmath>
using namespace std;


int main()
{
	int n;
	double a,b,c;
	cin>>n;
	for(int i=n;i>0;i--)
	{
		cin>>a;
		cin>>b;
		cin>>c;
	if(a==b && b==c )
		cout<<"NO"<<endl;
	else if(a>b && a>c)
		if(pow(b,2)+pow(c,2)==pow(a,2))
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	else if(c>a && c>b)
		if(pow(b,2)+pow(a,2)==pow(c,2))
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	else if(b>a && b>c)
		if(pow(c,2)+pow(a,2)==pow(b,2))
			cout<<"YES"<<endl;
		else
			cout<<"NO"<<endl;
	}
	return 0;
}