How do you figure out the efficiency of a system?

In one sentance

The efficiency of a system can be determined by dividing the useful output or work obtained from the system by the total input energy or effort applied to it.