Multiple datasets, each with the following input:

An integer N (1 ≤ N ≤ 100), representing some quantity or size.
An integer M (1 ≤ M ≤ 100), representing some quantity or size.
N tuples, each containing three integers (0 ≤ xi, yi ≤ 10000) and (1 ≤ vi ≤ 100), representing some coordinates and a speed.
M tuples, each containing two integers (0 ≤ x'j, y'j ≤ 10000), representing some coordinates.

### Example Input:

```
2 2
10 20 1
0 10 1
0 10
10 0
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[int, int, List[Tuple[int, 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 tuples, each containing three integers
        - a list of M tuples, each containing two integers
    '''
```