An integer \( n \) (3 ≤ \( n \) ≤ 100), representing some quantity or size.
Two integers \( vx \) and \( vy \) (-10000 ≤ \( vx, vy \) ≤ 10000), where \( vx \) and \( vy \) are non-zero vectors.
A list of \( n \) pairs of integers, where each pair (xi, yi) represents coordinates (0 ≤ \( xi, yi \) ≤ 10000).
The input is terminated by a line with a zero.

### Example Input:

```
5
0 1
0 0
5 0
1 1
5 2
0 2
0
```

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