An integer pair (x1, y1) representing coordinates, where 0 ≤ x1, y1 ≤ 10^4.
An integer pair (x2, y2) representing coordinates, where 0 ≤ x2, y2 ≤ 10^4.
An integer N (3 ≤ N ≤ 100), representing some quantity or size.
A list of N integer pairs [(x_1, y_1), (x_2, y_2), ..., (x_N, y_N)], where each pair represents coordinates, and 0 ≤ x_i, y_i ≤ 10^4.

### Example Input:
```
0 0
4 0
4
1 1
2 1
3 3
1 2
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[int, int, List[Tuple[int, int]]]]):
    '''
    inputs: a list of tuples where each tuple contains:
        - an integer pair
        - an integer pair
        - an integer
        - a list of integer pairs
    '''
```