#include<iostream>
using namespace std;

int main(){
	int a,b,c,n,x,y,z;
	cin>>n
	;for(int i=0;i<n;i++){
		cin>>a>>b>>c;
		if(a>b&&a>c){
			x=a;y=b;z=c;
		}else if(a<b&&b>c){
			x=b;y=a;z=c;
		}else{
			x=c;y=a;z=b;
		}
		if(x*x==y*y+z*z){
			cout<<"YES"<<endl;
		}else{
			cout<<"NO"<<endl;
		}
	}
	return 0;
}