object Main extends App {
  val n = scala.io.StdIn.readLine.toInt
  val list = List.fill(n)(scala.io.StdIn.readLine)
  for(i <- 0 until n) {
    val nlist = list(i).split(" ").map(_.toInt).sorted
    if(nlist(0)*nlist(0) + nlist(1)*nlist(1) == nlist(2)*nlist(2)) println("Yes")
    else println("No")
  }
}