n, m = map(int, input().split())
if n < 0 and m < 0:
    ans = m - n
elif n < 0 and m > 0:
    ans = m - n - 1
else:
    ans = m - n
print(ans)

1ec71f22c614ca1da48305b8e78c0bd9216f5741
<mask token>

<mask token>
if n < 0 and m < 0:
    ans = m - n
elif n < 0 and m > 0:
    ans = m - n - 1
else:
    ans = m - n
print(ans)

n, m = map(int, input().split())
if n < 0 and m < 0:
    ans = m - n
elif n < 0 and m > 0:
    ans = m - n - 1
else:
    ans = m - n
print(ans)
