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

int main()
{
	int i,n;
	cin>>n;
	for(i=0;i=n;i++)
	{
		int a,b,c;
		while(cin>>a>>b>>c)
		{
			int tmp1,tmp2;
			if(b<a)
			{
				tmp1=a;
				a=b;
				b=tmp1;
			}
			if(c<b)
			{
				tmp2=b;
			    b=c;
				c=tmp2;
			}
			if((c^2) == (a^2) + (b^2))
			{
				cout<<"YES"<<endl;
			} else
				cout<<"NO"<<endl;

		}
	}
    
	return 0;
}