
cicle = gets.to_i


cicle.times do
	siz = gets
	lines = siz.split(" ")
	max = 0
	sum = 0

	aa = lines[0].to_i**2
	bb = lines[1].to_i**2
	cc = lines[2].to_i**2

	if ((aa-bb-cc) == 0)
			puts "YES" 
	elsif ((bb-cc-aa) == 0)
			puts "YES" 
	elsif ((cc-aa-bb) == 0)
			puts "YES" 
	else 
		puts "NO"
	end

end