n = gets.to_i
n.times{
  d = gets
  s = d.split(" ").map(&:to_i)
  if s[0] ** 2 + s[1] ** 2 == s[2] ** 2 then
    puts "YES"
  elsif s[1] ** 2 + s[2] ** 2 == s[0] ** 2 then
    puts "YES"
  elsif s[2] ** 2 + s[0] ** 2 == s[1] ** 2 then
    puts "YES"
  else
    puts "NO"
  end
}