#include<iostream>
void swap(int *x,int *y){
	int z=*x;
	*x=*y,*y=z;
}
int main(){
	using namespace std;
	int n,a,b,c;
	cin>>n;
	while(n--){
		cin>>a>>b>>c;
		if(b<c)swap(b,c);
		if(a<b)swap(a,b);
		if(b<c)swap(b,c);
		if((a*a)==(b*b)+(c*c))cout<<"YES"<<endl;
		else cout<<"NO"<<endl;
	}
	
	return 0;
}