An integer N (1 ≤ N ≤ 300), representing some quantity or size.
A list of N lists, where each inner list contains N integers between 0 and 10^9, with the diagonal elements being 0 and the matrix being symmetric.

### Example Input:

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

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