An integer n (0 ≤ n ≤ 10), representing some quantity or size.
A list of n tuples, each containing:
- A string of up to 20 characters.
- Three integers (0 ≤ each integer ≤ 9).

Multiple sets of inputs are provided. Each set follows the above format, and the input ends when n is 0. The number of data sets will not exceed 50.

### Example Input:

```
4
TeamA 1 0 2
TeamB 1 2 0
TeamC 0 2 1
TeamD 2 0 1
3
TeamE 0 2 0
TeamF 1 0 1
TeamG 1 0 1
0
```

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