An integer X1 (-10^9 ≤ X1 ≤ 10^9).
An integer Y1 (1 ≤ Y1 ≤ 10^9).
An integer X2 (-10^9 ≤ X2 ≤ 10^9).
An integer Y2 (1 ≤ Y2 ≤ 10^9).
An integer Z (1 ≤ Z ≤ 10^9).

### Example Input:

```
11 2
3 1
3
```

### Function Signature:

Write a function f(X1, Y1, X2, Y2, Z) that takes in the input.

```python
def f(X1: int, Y1: int, X2: int, Y2: int, Z: int):
    '''
    X1: an integer
    Y1: an integer
    X2: an integer
    Y2: an integer
    Z: an integer
    '''
```