import std.stdio,std.string,std.conv,std.algorithm;
void main(){
	auto readline = to!int(readln().chomp());
	for( ; 0 < readline ; readline-- ){
		auto arr = readln().chomp().split();
		check( to!int(arr[0]),to!int(arr[1]),to!int(arr[2]));
	}
}
void check(int x,int y,int z){
	if( x*x+y*y==z*z || x*x+z*z==y*y || y*y+z*z==x*x ){
		writeln("YES");
	}else{
		writeln("NO");
	}
}