import std.stdio;
import std.algorithm;
import std.math;
void main(){
	int n;
	readf("%d\n", &n);
	while(n--){
		int a, b, c;
		readf("%d %d %d\n", &a, &b, &c);
		int max_e = max(a, max(b, c));
		if(pow(max_e, 2) == pow(a+b+c - max_e, 2) - 2 * a*b*c / max_e)
			writeln("YES");
		else
			writeln("NO");
	}
}