W, a, b = map(int, input().split())
if a > b + W or b > a + W:
    print(min(abs(a + W - b), abs(b + W - a)))
else:
    print(0)

e8de5e91e97ebde63652dd60c4ae00ada6c057e9
<mask token>

<mask token>
if a > b + W or b > a + W:
    print(min(abs(a + W - b), abs(b + W - a)))
else:
    print(0)

W, a, b = map(int, input().split())
if a > b + W or b > a + W:
    print(min(abs(a + W - b), abs(b + W - a)))
else:
    print(0)
