An integer N (1 ≤ N ≤ 200), representing some quantity or size.
An integer K (1 ≤ K ≤ 10^18), representing some value or limit.
A list of N integers A, where each integer is between 1 and 10^18.

### Example Input:

```
2 2
5 7
```

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