An integer N (1 ≤ N ≤ 10^6), representing some quantity or size.
An integer L (1 ≤ L ≤ 10^6), another quantity with a constraint relative to N.
A list of integers A of size N, where each integer is between 1 and 1e9.

### Example Input:

```
7 3
1 7 7 4 8 1 6
```

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