Canonicalized Input Description:

An integer N (1 ≤ N ≤ 2 × 10^5), representing some quantity or size.
A list of N tuples, each containing two integers (X, Y), where each integer is between 0 and 10^9.

### Example Input:

```
2
1 2
3 2
```

### Function Signature:
Write a function f(inputs) that takes in the input.
def f(N: int, A: List[int], B: List[int]):
    '''
    N: int, the number of elements in the list
    A: List[int], the list of first element of the tuples
    B: List[int], the list of second element of the tuples
    '''
