triangle = Array.new(3)

N = gets.chomp.to_i
for i in 1..N
	imput = gets.chomp.split("\s")

	for k in 0..2
		triangle[k] = imput[k].to_i
	end

	tri = triangle.sort

	if tri[2] ** 2 == (tri[0] ** 2) + (tri[1] ** 2)
		puts "Yes"
	else
		puts "No"
	end
end