N = gets.to_i

N.times do
 x = gets()
 y = x.split()
 a = y[0].to_i
 b = y[1].to_i
 c = y[2].to_i

 aa = a * a
 bb = b * b
 cc = c * c

 if aa == bb + cc
  puts "YES"
  elsif bb == aa + cc
  puts "YES"
  elsif cc == bb + aa
  puts "YES"
  else
  puts "NO"
 end
end
