Canonicalized Input Description:

An integer N (2 ≤ N ≤ 200000), representing some quantity or size.
An integer K (1 ≤ K ≤ N-1), representing another quantity or size.
A list of integers A of size N, where each integer is between 1 and 10^9.

### Example Input:

```
5 3
96 98 95 100 20
```

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