set = gets
arr = Array.new

while line = gets do
	num = line.split
	num.each do |n|
		arr.push(n.to_i)
	end
	arr_s = arr.sort

	a = arr_s[0]**2 + arr_s[1]**2
	if a == arr_s[2]**2
		puts "YES"
	else
		puts "NO"
	end

	arr.delete(3)
end