In a Carnot cycle, heat is transferred at