#include <iostream>
using namespace std;

int main(){
	int N;
	cin >>N;
	for(int i =0;i<=N;i++){
		int j,k,l;
		cin >> j;
		cin >> k;
		cin >> l;
		if(j*j+k*k==l*l||k*k+l*l==j*j||l*l+j*j==k*k)
			cout << "YES"<<endl;
		else
			cout <<"NO"<<endl;
		
	}

	return 0;
}