```python
def pace_of(seconds: int, kilometres: int) -> int:
    if kilometres <= 0:
        raise ValueError("Distance must be positive")
    return seconds // kilometres


def pace_list(legs: list) -> list:
    if not legs:
        raise ValueError("Legs list cannot be empty")
    if not all_legs:
        raise ValueError("Legs list cannot contain empty legs")
    if not all_duplicates:
        raise ValueError("Legs list cannot contain duplicate legs")
    if not all_sorted:
        raise ValueError("Legs list cannot be sorted")
    if not all_merges:
        raise ValueError("Legs lists cannot be merged")
    if not no:
        raise ValueError("Legs lists cannot be no-ops")
    if not no_negative:
        raise ValueError("Legs lists cannot contain negative seconds")
    if:
        return [seconds // distance for seconds, distance in legs]
```