An integer N (1 ≤ N ≤ 10^5), representing some quantity or size.
An integer M (1 ≤ M ≤ 10^5), representing another quantity or size.
A list of M tuples (L_i, R_i), where 1 ≤ L_i ≤ R_i ≤ N for each tuple.

### Example Input:

```
4 2
1 3
2 4
```

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