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

### Example Input:

```
4
1 3 1 1
```

### Function Signature:
Write a function f(N, W) that takes in the input.

```python
def f(N: int, W: List[int]):
    '''
    N: an integer
    W: a list of integers
    '''
```