An integer n (n ≤ 10), representing some quantity or size.  
A list of tuples (name, w, l, d) of size n, where each tuple consists of:  
- name: a string of up to 20 alphabets  
- w: an integer (0 ≤ w ≤ 9)  
- l: an integer (0 ≤ l ≤ 9)  
- d: an integer (0 ≤ d ≤ 9)  

The input terminates when n is 0. Multiple data sets are provided. The number of data sets will not exceed 50.

### Example Input:

```
4
Japan 1 0 2
Egypt 1 2 0
Canada 0 2 1
Spain 2 0 1
3
India 0 2 0
Poland 1 0 1
Italy 1 0 1
0
```

### Function Signature:
Write a function f(inputs) that takes in the input.
```python
def f(inputs: List[Tuple[int, List[Tuple[str, int, int, int]]]]):
    '''
    inputs: a list of tuples, where each tuple consists of an integer and a list of tuples
    '''