A machine is said to be efficient. What does it mean in terms of input and output energy?

A machine is efficient when most of the input energy is converted into useful output energy, with minimal energy lost as heat or friction.