Canonicalized Input Description:

An integer N (1 ≤ N ≤ 14), representing some quantity or size.
An integer M (1 ≤ M ≤ N), representing some quantity or size.
N pairs of integers (x, y) where each integer is between 0 and 100000.

### Example Input:

```
5 2
0 0
5 5
10 10
100 100
200 200
```

### 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 N
        - an integer M
        - a list of N pairs of integers (x, y)
    '''
```