For the given set of numbers, compute their median.
5, 8, 4, 7, 1
The sorted list is 1, 4, 5, 7, 8. Therefore, the median is 5.
Below is an instruction that describes a task. Write a response that appropriately completes the request.

### Instruction:
For the given set of numbers, compute their median.

### Response:
The sorted list is 1, 4, 5, 7, 8. Therefore, the median is 5.