Canonicalized Input Description:

An integer A (1 ≤ A ≤ 10), representing some quantity or size.
An integer B (1 ≤ B ≤ 10), representing some quantity or size.
A matrix of integers of size A x B, where each integer is between 1 and 100.

### Example Input:

```
2 3
1 2 2
1 2 3
```

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