
count = gets.to_i
arr = []

count.times do
  arr << gets.chomp.split(" ").map(&:to_i).sort
end

arr.each do |val|

  val_1 = val[0].instance_of?(Float) ? Math.sqrt(val[0]) : val[0]
  val_2 = val[1].instance_of?(Float) ? Math.sqrt(val[1]) : val[1]
  val_3 = val[2].instance_of?(Float) ? Math.sqrt(val[2]) : val[2]

  if val_1 == 1 && val_2 == 1 && val_3 == 1
    puts "No"
  elsif (val_1 * val_1) + (val_2 * val_2) == (val_3 * val_3)
    puts "Yes"
  else
    puts "No"
  end
end