A student compares four devices. The table shows the energy transfers during one operation of each device.
| Device | Total energy input in J\mathrm{J}J | Wasted energy output in J\mathrm{J}J |
|---|---|---|
| P | 500 | 150 |
| Q | 800 | 200 |
| R | 600 | 180 |
| S | 1000 | 300 |
Which device has the greatest efficiency?
device Q
device P
device R
device S