i = gets.to_i

i.times do
	a = gets.chomp.split(" ")
	s1 = a[0].to_i
	s2 = a[1].to_i
	s3 = a[2].to_i
	if s1*s1+s2*s2 ==s3*s3 || s1*s1+s3*s3 ==s2*s2 || s3*s3+s2*s2 ==s1*s1
		puts "YES"
	else
		puts "NO"
	end
end