Answer:
part of input energy is wasted
it is used to increase the entropy of the surrounding
therefore the useful energy output is necessarily smaller than the energy input
in other words the efficiency of heat engine is always less than hundred percent