def min_Operations(A, B):
    if A == B:
        return 0
    
    # We can only increment A or decrement B
    # We want to find minimum operations to make A == B
    # Operation: increment A by 1 or decrement B by 1
    # If A > B, it's impossible with these operations in forward direction
    # The minimum operations would be B - A if B >= A
    
    # Actually, let's think more carefully:
    # We need to make A equal to B
    # We can increment A (cost 1 each) or decrement B (cost 1 each)
    # Minimum operations = B - A if B >= A
    
    if B >= A:
        return B - A
    else:
        return A - B