The input consists of multiple datasets.  The number of datasets is no more than 100.  The end of the input is represented
by "0 0 0".

An integer L (1.0 ≤ L ≤ 500.0), a decimal fraction representing some quantity.
An integer R (1.0 ≤ R ≤ 10.0), a decimal fraction representing some count.
An integer N (3 ≤ N ≤ 100), representing some quantity or size.
A list of tuples (X, Y) of size N, where each integer X and Y is between -1000 and 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
    '''
```