#include<iostream>
#include<math.h>
#include<algorithm>
using namespace std;

void erabu(double* a, double* b,double* c) {
	if (*a > *b) {
		swap(*a, *b);
	}
	if (*b > *c) {
		swap(*b, *c);
	}
	if (*a > *b) {
		swap(*a, *b);
	}
}
int main() 
{
	int n;
	cin >> n;
	for (int i = 0; i < n; i++) {
		double a, b, c;
		cin >> a >> b >> c;
		erabu(&a, &b, &c);
		if (pow(c, 2) == pow(a, 2) + pow(b, 2)) {
			cout << "Yes" << endl;
		}
		else cout << "No" << endl;
	}

	return 0;
}