set = gets
arr = Array.new(3)

while line = gets do
	num = line.split
	arr[0] = num[0].to_i
	arr[1] = num[1].to_i
	arr[2] = num[2].to_i
	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

end