// 2011/05/30 Tazoe

#include <iostream>
using namespace std;

int main()
{
	int N;
	cin >> N;

	for(int i=0; i<N; i++){
		int a, b, c;
		cin >> a >> b >> c;

		if(b>a&&b>c){
			int tmp = a;
			a = b;
			b = tmp;
		}
		if(c>a&&c>b){
			int tmp = a;
			a = c;
			c = tmp;
		}

		if(a*a==b*b+c*c)
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}

	return 0;
}