An integer N (2 ≤ N ≤ 300), representing some quantity or size.
A list of integers A of size N, where each integer is between 1 and 10^12.

### Example Input:

```
2
5 3
```

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