N=gets.to_i
N.times do
  lengthes =  gets().split().map(&:to_i).to_a
  hypotenuse = lengthes.max
  if lengthes.min == hypotenuse
    puts "NO"
    next
  end
  others = lengthes - [hypotenuse]
  if (hypotenuse**2) == (others[0]**2 + others[1]**2)
    puts "YES"
  else
    puts "NO"
  end
end