```python
def median_of_three(a, b, c):
    return sorted([a, b, c])[1]
```