Canonicalized Input Description:

An integer N (1 ≤ N ≤ 1000), representing some quantity or size.
A list of N strings S, where each string has a length between 1 and 100 and consists of numbers and uppercase letters.

### Example Input:
```
5
E869120
TMJN
E869120
TAISA
YNYMXIAOLONGBAO
```

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