An integer n (1 ≤ n ≤ 1000), representing some quantity or size.
A list of n integers d, where each integer is a digit (0 ≤ d ≤ 9).

### Example Input:

```
3
3 0 1
```

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