Input (grade 13): Heat transfer always occurs from a higher-temperature object to a cooler temperature one as described by the second law of thermodynamics or the Clausius statement.
Output (grade 10): Heat transfer always occurs from a hot body to a cold one, a result of the second law of thermodynamics.