------
## 最终结论
```python
def min_operations(X, Y):
    operations = 0
    if Y <= X:
        return X - Y
    while Y > X:
        if Y % 2 == 0:
            Y //= 2
        else:
            Y += 1
        operations += 1
    return operations + (X - Y)
```