```python
def fuel_legs(litres: int, burn: int) -> int:
    if burn <= 0:
        raise ValueError("Burn must be greater than 0")
    if litres <= 0:
        return 0
    return litres // burn
```