In: Advanced Math
All heat energy cannot be completely converted into work energy, as no system is 100% efficient practically .
Part of energy supplied is used to get the required work and remaining energy is rejected to surrounding.(sink). which can be atmosphere , river ,etc capable to absorb large quantities of energy.