A weak version of the small-gain theorem