An integer N (1 ≤ N ≤ 100), representing some quantity or size.
An integer R (0 ≤ R ≤ 4111).

### Example Input:

```
12 2919
```

### Function Signature:
Write a function f(N, R) that takes in the input.
def f(N: int, R: int):
    '''
    N: an integer
    R: an integer
    '''