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

### Example Input:

```
5
4 2 6 3 5
1 1 1 1 1
```

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