
count = gets.to_i
arr = []

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

arr.each do |val|
  if (val[0] * val[0]).to_f + (val[1] * val[1]).to_f == (val[2] * val[2]).to_f
    puts "Yes"
  else
    puts "No"
  end
end