An integer or decimal \(L\) (1.0 ≤ \(L\) ≤ 500.0).
An integer or decimal \(R\) (1.0 ≤ \(R\) ≤ 10.0).
An integer \(N\) (3 ≤ \(N\) ≤ 100).
A list of \(N\) pairs of integers \((X, Y)\), where each integer \(-1000 ≤ X ≤ 1000\) and \(-1000 ≤ Y ≤ 1000\).

### Example Input:

```
4.0 2.0 8
-1 0
5 0
5 -2
7 -2
7 0
18 0
18 6
-1 6
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[float, float, int, List[Tuple[int, int]]]]):
    '''
    inputs: a list of tuples, each containing:
        - a float
        - a float
        - an integer
        - a list of tuples, each containing two integers
    '''
```