An integer n (1 ≤ n < 100), representing some quantity or size.
A list of n records, where each record is a sequence of integers ending with zero.
Each record consists of one or more lines, each containing up to 1000 characters.
Each integer in the record is delimited by a space or a newline.

### Example Input:
```
2
3 3 3 3 -3 3 2 -5 3 2 -5 -3 0
3 5 4 -2 4 -3 -2 -2 -1 0
```

### Function Signature:
Write a function f(n, records) that takes in the input.
```python
def f(n: int, records: List[List[int]]): 
    ''' 
    n: an integer 
    records: a list of lists of integers
    '''
```