Multiple datasets, each dataset consists of the following:

An integer n (2 ≤ n ≤ 11).
Five integers w, h, r, v_x, v_y (4 ≤ w, h ≤ 1,000; 1 ≤ r ≤ 100; -10,000 ≤ v_x, v_y ≤ 10,000 and (v_x, v_y) ≠ (0, 0)).
A list of n tuples, each containing two integers x_i, y_i (r < x_i < w - r, r < y_i < h - r).

### Example Input:

```
3
26 16 1 8 4
10 6
9 2
9 10
```

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