process.stdin.on("data",function(c){                                              
  (c+"").trim().split("\n").some(function(a){                                     
    var n = a.split(" ").map(function(x){return x*x}).sort(function(x,y){return x-y});                                                                                  console.log(n[0]+n[1]===n[2]?'YES':'NO');                                       
  });                                                                               
}).resume();