An integer \( n \) (5 ≤ \( n \) ≤ 10000). The sequence of inputs ends with a 0.

### Example Input:

```
12
100
200
300
0
```

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