```python
from typing import *
from collections import *

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