
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]
  val_2 = val[1]
  val_3 = 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) == 1
    puts "Yes"
  else
    puts "No"
  end
end