#include <iostream>
using namespace std;

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