When energy leaves a hot reservoir as heat, the entropy of the reservoir decreases. When the same quantity of energy enters a cooler reservoir, the entropy increases by a larger amount. Hence, overall there is an increase in entropy and the process is spontaneous. Relative changes in entropy are indicated by the sizes of the arrows.