#include <iostream>
int main(void){
	int n,a,b,c;
	std::cin>>n;
	for (;n--;){
		std::cin>>a>>b>>c;
		if (a>b) swap(a,b);
		if (b>c) swap(b,c);
		if (a*a+b*b==c*c)
			std::cout<<"YES\n";
		else
			std::cout<<"NO\n";
	}
}