#include<iostream>
#include<stdio.h>
using namespace std;
int main() {
	int i, j, l;
	int aa, ab,ac,ad,ae,af,ag;
	double ba, bb, bc;
	char ca, cb, cc;
////////////////////////////////////////////////////////
	int max;
	cin >> ag;
	for (i = 0; i < ag; i++) {
		cin >> aa;
		cin >> ab;
		cin >> ac;
		if (aa < ab) {
			max = aa;
			aa = ab;
			ab = max;
		}
		if (aa < ac) {
			max = aa;
			aa = ac;
			ac = max;
		}
		if (ab * ab + ac * ac == aa * aa) {
			cout << "YES\n";
		}
		else {
			cout << "NO\n";
		}

	}


}

