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

int main(){
	int a,b,c;
	int n;
	cin>>n;
	string answer[10000];
	for(int i=0;i<n;i++){
		cin>>a>>b>>c;
		if((a^2)==(b^2)+(c^2)||(b^2)==(c^2)+(a^2)||(c^2)==(a^2)+(b^2)){
			answer[i]="YES";}
		else answer[i]="NO";
	}
	for(int j=0;j<n;j++){
		cout<<answer[j]<<endl;
	}
}