An integer N (1 ≤ N ≤ 100), representing some quantity or size.
An integer M (0 ≤ M ≤ 50), representing some quantity or size.
An integer L (1 ≤ L ≤ 100,000), representing some quantity or size.
N lines each containing three integers P_i (0 ≤ P_i ≤ 100), T_i (0 ≤ T_i ≤ 100), and V_i (0 ≤ V_i ≤ 100).

### Example Input:

```
2 2 50
30 50 1
30 50 2
```

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