#include <algorithm>
#include <iostream>

using namespace std;

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

	while(remaining_line--)
	{
		int side[3];
		for(auto& i : side)
			cin >> i;
		sort(side, side+3);

		if(side[0]*side[0] + side[1]*side[1] == side[2]*side[2])
			cout << "YES" << endl;
		else
			cout << "NO" << endl;
	}

	return 0;
}