An integer N (1 ≤ N ≤ 300), representing some quantity or size.
An integer M (1 ≤ M ≤ 300), representing another quantity or size.
A 2D list of integers A of size N x M, where each integer is between 0 and 1.

### Example Input:

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

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