An integer N (1 ≤ N ≤ 60), representing some quantity or size.
A list of integers a of size N, where each integer is between -2 and 2.

### Example Input:
```
4
2 0 -2 1
```

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