function Main(input) {
    lines=input.split("\n").slice(1);
    for(var i in lines){
	if(lines[i]=="")break;
	len=lines[i].split(" ").map(function(x){return x-0;});
	len.sort(function(a,b){return a-b;});
	console.log(len[0]*len[0]+len[1]*len[1]==len[2]*len[2] ? "YES":"NO");
    }
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));