W,a,b = map(int,input().split())

if a <= b <= a + W:
    res = 0
else:
    if a+W < b:
        res = b - (a + W)
    else:
        res = a - (b + W)

print(res)
56d7f5eea9f00eeb87efa3addc03537799f5be88
<mask token>

<mask token>
if a <= b <= a + W:
    res = 0
elif a + W < b:
    res = b - (a + W)
else:
    res = a - (b + W)
print(res)

W, a, b = map(int, input().split())
if a <= b <= a + W:
    res = 0
elif a + W < b:
    res = b - (a + W)
else:
    res = a - (b + W)
print(res)

W,a,b = map(int,input().split())

if a <= b <= a + W:
    res = 0
else:
    if a+W < b:
        res = b - (a + W)
    else:
        res = a - (b + W)

print(res)