An integer N (2 ≤ N ≤ 10^5), representing some quantity or size.
An integer x (1 ≤ x ≤ 2N-1).

### Example Input:

```
4 4
```

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