module Input
	def numread()
		s = gets().split()
		p = Array.new()
		for i in 0...s.size()
			p[i] = s[i].to_i()
		end
		return p
	end
	
	module_function:numread
end

include Input

n = numread()[0]
for i in 0...n
	if(STDIN.eof())
		break
	end
	w = numread()
	w.sort!()
	if(w[0] ** 2 + w[1] ** 2 == w[2] ** 2)
		print("YES\n");
	else
		print("NO\n");
	end
end