
	n = gets.to_i
	
	n.times{
	
	date = gets
	date = date.split
	
	date[0] = date[0].to_i
	date[1] = date[1].to_i
	date[2] = date[2].to_i
	
	if (date[0]**2) == (date[1]**2)+(date[2]**2) then puts "YES"
	elsif  (date[1]**2) == (date[0]**2)+(date[2]**2) then puts "YES"
	elsif (date[2]**2) == (date[1]**2)+(date[0]**2) then puts "YES"
	else puts "NO" end
	}