 Essentially, there are two "heat reservoirs" forming part of the heat engine at temperatures "T"h and "T"c (hot and cold respectively).They have such large thermal capacity that their temperatures are practically unaffected by a single cycle.Since the cycle is theoretically reversible, there is no generation of entropy during the cycle; entropy is conserved.