object Main extends App {
  val src = io.Source.stdin.getLines

  def checkRTriangle(a: Int, b: Int, c: Int): String = {
    if (a*a + b*b == c*c || a*a + c*c == b*b || b*b + c*c == a*a) "YES"
    else "NO"
  }

  for (str <- src; if str.length != 1) {
    val Array(a, b, c) = str.split(" ").map(_.toInt)
    println(checkRTriangle(a, b, c))
  }
}