for a machine to be a heat engine, what kind of conversion must it perform?

A. work into heat
B. heat into entropy
C. entropy into heat
D. heat into work

THANKS!