object Main App{                                                             
  val sc = new java.util.Scanner(System.in)
  val N = sc.nextInt

  for(i <- 0 until N) {
    val tmp = new Array[Int](3)
    for(j <- 0 until 3) tmp(j) = sc.nextInt

    val max = tmp.max
    val min1 = if(tmp(0) == tmp.max) tmp(1) else tmp(0)
    val min2 = if(tmp(2) == tmp.max) tmp(1) else tmp(2)

    val min1_pow = Math.pow(min1, 2)
    val min2_pow = Math.pow(min2, 2)
    val min = Math.sqrt(min1_pow + min2_pow)

    val check = if(max == min) "YES" else "NO"
    println(check)
  }

}