An integer Time (0 ≤ Time ≤ 100), representing some time limit.
An integer R (0 < R < 30000), representing some distance.
An integer L (2 ≤ L ≤ 20), representing the number of time-stamped coordinates for the first entity.
L lines follow, each containing three integers: X, Y, and T, representing coordinates and time.
An integer M (2 ≤ M ≤ 20), representing the number of time-stamped coordinates for the second entity.
M lines follow, each containing three integers: X, Y, and T, representing coordinates and time.
An integer N (0 ≤ N ≤ 20), representing the number of rectangular obstacles.
N lines follow, each containing four integers: SX, SY, TX, and TY, representing the coordinates of the rectangles.
Two zeros (0 0) indicate the end of input.

### Example Input:

```
50 100
2
50 50 0
51 51 50
2
0 0 0
1 1 50
0
0 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]], int, List[Tuple[int, int, int]], int, List[Tuple[int, int, int, int]]]):
    '''
    inputs: a list of tuples containing:
        - an integer
        - an integer
        - a list of tuples, each containing three integers
        - an integer
        - a list of tuples, each containing three integers
        - an integer
        - a list of tuples, each containing four integers
    '''
```