#include<iostream>
using namespace  std;
int main(){
	int N,a,b,c,d,i;
    cin>>N;
	for(i=0;i<N;i++){
		cin>>a>>b>>c;
	if(a<b){d=a,a=b,b=d;}
	else if(a<c){d=a,a=c,c=d;}
	if(a*a==b*b+c*c){
	cout<<"Yes"<<endl;}
	else{cout<<"No"<<endl;}
	}
	return 0;
}