Canonicalized Input Description:

An integer N (1 ≤ N ≤ 1000).
Three integers X, Y, and Z (0 ≤ X, Y, Z ≤ 1e18).

### Example Input:

```
3 1 0 1
```

### Function Signature:
Write a function f(N, X, Y, Z) that takes in the input.
```python
def f(N: int, X: int, Y: int, Z: int):
    '''
    N: an integer
    X: an integer
    Y: an integer
    Z: an integer
    '''
```