AtCoDeer the deer found two rectangles lying on the table, each with height 1 and width W.
If we consider the surface of the desk as a two-dimensional plane, the first rectangle covers the vertical range of [0,1] and the horizontal range of [a,a+W], and the second rectangle covers the vertical range of [1,2] and the horizontal range of [b,b+W], as shown in the following figure:

AtCoDeer will move the second rectangle horizontally so that it connects with the first rectangle.
Find the minimum distance it needs to be moved.

-----Constraints-----
 - All input values are integers.
 - 1≤W≤10^5
 - 1≤a,b≤10^5

-----Input-----
The input is given from Standard Input in the following format:
W a b

-----Output-----
Print the minimum distance the second rectangle needs to be moved.

-----Sample Input-----
3 2 6

-----Sample Output-----
1

This input corresponds to the figure in the statement. In this case, the second rectangle should be moved to the left by a distance of 1.
[{"code": "W,a,b=map(int,input().split());print([abs(a-b)-W,0][abs(a-b)<=W])", "passed": true, "time": 0.9, "memory": 14076.0, "status": "done"}, {"code": "a,b,c=input().split()\na=int(a)\nb=int(b)\nc=int(c)\nif b<=c:\n  if a+b>=c:\n    print(0)\n  else:\n    print(c-b-a)\nelse:\n  if a+c>=b:\n    print(0)\n  else:\n    print(b-c-a)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "w,a,b = map(int, input().split())\nprint(max(0,b-a-w) if b >= a else max(0,a-b-w))", "passed": true, "time": 0.16, "memory": 14300.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nW, a, b = list(map(int, input().split()))\n\na_l = a\na_r = a + W\nb_l = b\nb_r = b + W\n\nif b_r < a_l:\n    print((abs(b_r - a_l)))\nelif a_r < b_l:\n    print((abs(a_r - b_l)))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif b>=a+w:\n    print(b-a-w)\nelse:\n    if b+w>=a:\n        print('0')\n    else:\n        print(a-b-w)", "passed": true, "time": 0.16, "memory": 14092.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nprint(max(abs(a-b)-w,0))", "passed": true, "time": 0.14, "memory": 14184.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nif a <= b:\n    if a+w < b:\n        print(b-a-w)\n    else:\n        print(0)\nelse:\n    if b+w < a:\n        print(a-b-w)\n    else:\n        print(0)", "passed": true, "time": 0.81, "memory": 14108.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nif abs(a - b) <= w:\n  print((0))\nelse:\n  print((abs(a -b) - w))\n", "passed": true, "time": 0.25, "memory": 14024.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif a + w < b:\n  print(b - (a + w))\nelif b + w < a:\n  print(a - (b + w))\nelse:\n  print(0)", "passed": true, "time": 0.81, "memory": 14068.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif a+w < b:\n    ans = b-(a+w)\nelif b+w < a:\n    ans = a-(b+w)\nelse:\n    ans = 0\n\nprint(ans)", "passed": true, "time": 0.25, "memory": 14296.0, "status": "done"}, {"code": "W,a,b = map(int,input().split())\nprint(max(0,b-(a+W),a-(b+W)))", "passed": true, "time": 0.14, "memory": 14336.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nif a <= b <= a+w or a <= b+w <= a+w:\n  print(0)\nelse:\n  print(min(abs(a+w-b),abs(b+w-a)))", "passed": true, "time": 1.12, "memory": 14200.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(W: int, a: int, b: int):\n    if abs(a-b) <= W:\n        return 0\n    return abs(a-b) - W\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools\ndef main():\n    def iterate_tokens():\n        for line in sys.stdin:\n            for word in line.split():\n                yield word\n    tokens = iterate_tokens()\n    W = int(next(tokens))  # type: int\n    a = int(next(tokens))  # type: int\n    b = int(next(tokens))  # type: int\n    print((solve(W, a, b)))\n\ndef test():\n    import doctest\n    doctest.testmod()\n\ndef __starting_point():\n    #test()\n    main()\n\n__starting_point()", "passed": true, "time": 0.24, "memory": 14256.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nw,a,b=map(int,input().split())\nif b>a:\n    if b-w-a>0:\n        print(b-w-a)\n    else:\n        print(0)\nif a>b:\n    if a-w-b>0:\n        print(a-w-b)\n    else:\n        print(0)\nif a==b:\n    print(0)", "passed": true, "time": 0.15, "memory": 14320.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nif b+W<a :\n  print(a-(b+W))\nelif a+W<b :\n  print(b-(a+W))\nelse :\n  print(0)", "passed": true, "time": 0.14, "memory": 14272.0, "status": "done"}, {"code": "W, a, b = map(int, input().split())\nf = lambda x:x if x > 0 else 0\nprint(f(abs(a-b)-W))", "passed": true, "time": 0.14, "memory": 14328.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nprint(max(0, b - a - w, a - b - w))", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nif a + W < b:\n    print((b - (a + W)))\nelif a > b + W:\n    print((a - (b + W)))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14240.0, "status": "done"}, {"code": "w,a,b = map(int, input().split())\n\nif a <= b <= a + w or a <= b + w <= a + w:\n  print(0)\nelif a + w < b:\n  print(b - (w + a))\nelif b + w < a:\n  print(a - (w + b))", "passed": true, "time": 0.15, "memory": 14248.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif a<b:\n  if a+w>b:\n    print(0)\n  else:\n    print(b-a-w)\nelif b<a:\n  if b+w>a:\n    print(0)\n  else:\n    print(a-b-w)\nelse:\n  print(0)", "passed": true, "time": 0.14, "memory": 14168.0, "status": "done"}, {"code": "import sys\n\ndef I(): return int(sys.stdin.readline())\ndef MI(): return map(int, sys.stdin.readline().split())\ndef LI(): return list(map(int, sys.stdin.readline().split()))\ndef main():\n    w, a, b = MI()\n    if b < a:\n        temp = a\n        a = b\n        b = temp\n    ans = max(0, b-a-w)\n    print(ans)\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nif abs(a - b) <= w:\n    print(0)\nelse:\n    print(abs(a - b) - w)", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "lst = input().split()\n\nW = int(lst[0])\na = int(lst[1])\nb = int(lst[2])\n\nif b-W <= a <= b+W:\n   print(0)\nelse:\n   print(max([b - (a + W), a - (b + W)]))", "passed": true, "time": 0.14, "memory": 14356.0, "status": "done"}, {"code": "w,a,b = (int(T) for T in input().split())\nif a+w<b:\n    print(b-(a+w))\nelif a<=b<=a+w:\n    print(0)\nelse:\n    print(a-(b+w))", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nif b + w < a:\n    res = a - (b + w)\nelif a <= b + w <= a + 2 * w:\n    res = 0\nelse:\n    res = b - (a + w)\n\nprint(res)\n", "passed": true, "time": 0.14, "memory": 14076.0, "status": "done"}, {"code": "W, a, b = map(int, input().split())\n\nif abs(b - a) - W <= 0:\n    print(0)\nelse:\n    print(abs(b - a) - W)", "passed": true, "time": 0.14, "memory": 14264.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nif abs(a - b) <= W:\n    print(0)\nelse:\n    print(abs(a - b) - W)", "passed": true, "time": 0.14, "memory": 14180.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nif a <= b <= a + W or a <= b + W <= a + W:\n    print((0))\nelse:\n    print((min(abs(a + W - b), abs(b + W - a))))\n", "passed": true, "time": 0.2, "memory": 14208.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nif a + W < b:\n    print((abs(a + W - b)))\nelif b + W < a:\n    print((abs(b + W - a)))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14124.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\n\nif a <= b <= a+w  or b <= a <= b+w:\n    ans = 0\nelif a < b:\n    ans = b-a-w\nelse:\n    ans = a-b-w\n\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14208.0, "status": "done"}, {"code": "W,a,b = map(int,input().split())\nif a-W <= b <= a+W:\n    print(0)\nelif b+W < a:\n    print(a-(b+W))\nelse:\n    print(b-(a+W))", "passed": true, "time": 0.14, "memory": 14072.0, "status": "done"}, {"code": "W,a,b = map(int, input ().split ())\nif a < b:\n  A,B = W+a,b\n  if A >= B:\n    print (0)\n  else:\n    print (B-A)\nelse:\n  A,B = a,W+b\n  if B >= A:\n    print (0)\n  else:\n    print (A-B)", "passed": true, "time": 0.14, "memory": 14092.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nans = max(a, b) - min(a+w, b+w)\nprint(max(ans, 0))", "passed": true, "time": 0.19, "memory": 14084.0, "status": "done"}, {"code": "W, A, B = [int(i) for i in input().split()]\n\nif B <= A <= B+W or B <= A+W <= B+W or A <= B <= A+W or A <= B+W <= A+W:\n  print((0))\nelif W + A <= B:\n  print((B - (W + A)))\nelse:\n  print((A - (B + W)))\n", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nif a <= b:\n    if a + w >= b:\n        print(0)\n    else:\n        print(b - a - w)\nelse:\n    if b + w >= a:\n        print(0)\n    else:\n        print(a - b - w)", "passed": true, "time": 0.27, "memory": 14236.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nif a+w < b:\n    print(b-a-w)\nelif b+w < a:\n    print(a-b-w)\nelse:\n    print(0)", "passed": true, "time": 0.22, "memory": 14216.0, "status": "done"}, {"code": "W, a, b = map(int, input().split())\nL = [b - (a + W), a - (b + W), 0]\nprint(max(L))", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif a>b:a,b=b,a\nprint(max(0,b-a-w))", "passed": true, "time": 0.27, "memory": 14316.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif abs(a - b) < w:\n  print(0)\nelse:\n  print(abs(a - b) - w)", "passed": true, "time": 0.24, "memory": 14164.0, "status": "done"}, {"code": "w, a, b = map(int,input().split())\nif a > b:\n    a, b = b, a\n\nprint(max(b - a - w, 0))", "passed": true, "time": 0.15, "memory": 14264.0, "status": "done"}, {"code": "W,a,b =list(map(int,input().split()))\nif b>=a:\n    if b-(a+W)<0:print((0))\n    else:print((b-(a+W)))\nelse :\n    if a-(b+W)<0:print((0))\n    else:print((a-(b+W)))\n        \n", "passed": true, "time": 0.24, "memory": 14192.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\n\nif a<=b:\n  if a+w<b:\n    print(b-a-w)\n  else:\n    print(0)\n    \nelse:\n  if b+w<a:\n    print(a-b-w)\n  else:\n    print(0)", "passed": true, "time": 0.18, "memory": 14068.0, "status": "done"}, {"code": "# import math\n# import statistics\n# import itertools\n# a=int(input())\n# b=input()\n# c=[]\n# for i in a:\n#     c.append(int(i))\nW,a,b= list(map(int,input().split()))\n# f = list(map(int,input().split()))\n# g = [int(input()) for _ in range(N)]\n# h = []\n# for i in range(a):\n#     h.append(list(map(int,input().split())))\n# a = [[0] for _ in range(H)]#nizigen\n\nans1=b-(a+W)\nans2=a-(b+W)\n\nif a+W<b or b+W<a:\n    print((min(abs(ans1),abs(ans2))))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14280.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif len(sorted(set(range(a,a+w+1)) & set(range(b,b+w+1)))) !=0:\n  print(\"0\")\nelif b>=a+w:\n  print(b-a-w)\nelif a>=b+w:\n  print(a-b-w)", "passed": true, "time": 0.14, "memory": 14144.0, "status": "done"}, {"code": "w,a,b = map(int, input().split())\nprint(max(abs(a-b)-w,0))", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nif abs(a - b) < w:\n    ans = 0\nelse:\n    ans = abs(a - b) - w\nprint(ans)", "passed": true, "time": 0.14, "memory": 14048.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nprint(max(0,b-a-W,a-b-W))", "passed": true, "time": 0.14, "memory": 14088.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nif (a <= b <= a + W) or (a <= b + W <= a + W):\n    print((0))\n    return\n\nif a + W < b:\n    print((b - (a + W)))\n    return\nelse:\n    print((a - (b + W)))\n", "passed": true, "time": 0.14, "memory": 14176.0, "status": "done"}, {"code": "W,a,b=list(map(int,input().split()))\nprint((max(abs(a-b)-W,0)))\n", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif abs(a-b) <= abs(w):\n  print(0)\nelse:\n  print(abs(a-b)-w)", "passed": true, "time": 0.23, "memory": 14292.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nif a+w < b:\n    print((b-a-w))\nelif b+w < a:\n    print((a-b-w))\nelif a <= b <= a+w:\n    print((0))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14080.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nA=[i for i in range(a,a+w+1)]\nB=[i for i in range(b,b+w+1)]\nif a in B or b in A:\n    print(0)\nelse:\n    print(min(abs(a+w-b),abs(b+w-a)))", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\n\nmin_side = min(a,b)\nmax_side = max(a,b)\n\nt = max_side - (min_side + w)\nt = max(t,0)\n\nprint(t)", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "w,a,c=map(int,input().split())\n\nb=w+a\nd=w+c\n\nif a>c:\n  if a>d:\n    print(abs(d-a))\n  else:\n    print('0')\n\nelse:\n  if c>b:\n    print(abs(c-b))\n  else:\n    print('0')", "passed": true, "time": 0.14, "memory": 14284.0, "status": "done"}, {"code": "W,a,b=map(int, input().split())\n\ndis = max(0, abs(a-b)-W)\nprint(dis)", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "w,a,b = map(int, input().split())\nif b >= a:\n    print(max(0,b-(a+w)))\nelse:\n    print(max(0,a-(b+w)))", "passed": true, "time": 0.14, "memory": 14064.0, "status": "done"}, {"code": "#!/usr/bin/env python3\nimport sys\n\n\ndef solve(W: int, a: int, b: int):\n    if a <= b <= a+W or b <= a <= b+W:\n        return 0\n    return min(min(abs(aa-bb) for bb in [b, b+W]) for aa in [a, a+W])\n\n# Generated by 1.1.7.1 https://github.com/kyuridenamida/atcoder-tools\ndef main():\n    def iterate_tokens():\n        for line in sys.stdin:\n            for word in line.split():\n                yield word\n    tokens = iterate_tokens()\n    W = int(next(tokens))  # type: int\n    a = int(next(tokens))  # type: int\n    b = int(next(tokens))  # type: int\n    print((solve(W, a, b)))\n\ndef test():\n    import doctest\n    doctest.testmod()\n\ndef __starting_point():\n    #test()\n    main()\n\n__starting_point()", "passed": true, "time": 0.14, "memory": 14120.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif b > a + w:\n    print(b - a - w)\nelif b + w < a:\n    print(a - b - w)\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "w,a,b = map(int, input().split())\n\nif (a <= b <= a+w) or (a <= b+w <= a+w):\n    print(0)\nelif a+w < b:\n    print(b-a-w)\nelif b+w < a:\n    print(a-b-w)", "passed": true, "time": 0.19, "memory": 14360.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\naw = a + w\nbw = b + w\nif a == bw or b == aw or a == b:\n    print(0)\nelif a < b < aw or b < a < bw:\n    print(0)\nelse:\n    if aw < b:\n        print(b-aw)\n    if bw < a:\n        print(a-bw)", "passed": true, "time": 0.22, "memory": 14088.0, "status": "done"}, {"code": "import sys, math\nfrom itertools import combinations as c, product as p\nfrom collections import deque\nsys.setrecursionlimit(10**9)\nMOD = 10**9 + 7\n#MOD = 998244353\n\n\ndef si(): return input()\ndef ii(): return int(input())\ndef fi(): return float(input())\ndef lstr(): return input().split()\ndef lint(): return list(map(int, input().split()))\ndef lint_dec(): return list(map(lambda x:int(x) - 1, input().split()))\ndef lnstr(n): return [input() for _ in range(n)]\ndef lnint(n): return [int(input()) for _ in range(n)]\ndef lint_list(n): return [lint() for _ in range(n)]\n\n\n\n############################################################\nW, a, b = lint()\nprint(max(0, max(a, b) - min(a, b) - W))", "passed": true, "time": 0.51, "memory": 14264.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\n#print(w,a,b)\nif a+w < b:\n  print(abs(b-(a+w)))\nelif b+w < a:\n  print(abs(a-(b+w)))\nelse:\n  print(0)", "passed": true, "time": 0.16, "memory": 14092.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nres = max(0, abs(a - b) - w)\nprint(res)\n", "passed": true, "time": 0.27, "memory": 14052.0, "status": "done"}, {"code": "def answer(w: int, a: int, b: int) -> int:\n    b_a = abs(b - a)\n    if b_a <= w:\n        return 0\n    return b_a - w\n\n\ndef main():\n    w, a, b = map(int, input().split())\n    print(answer(w, a, b))\n\n\ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.4, "memory": 14200.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nprint(0) if a+w >= b and b+w >= a else print(b-a-w) if a+w < b else print(a-b-w)", "passed": true, "time": 0.39, "memory": 14036.0, "status": "done"}, {"code": "w,a,b = [int(x) for x in input().split()]\na,b = min(a,b) ,max(a,b)\n\nprint(max(0,b-a-w))", "passed": true, "time": 0.15, "memory": 14004.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\n\nprint((max(abs(b-a)-W, 0)))\n", "passed": true, "time": 0.26, "memory": 14076.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif a + w < b:\n  print(abs(b - (a+w)))\nelif b + w < a:\n  print(abs(a - (b+w)))\nelse:\n  print(0)", "passed": true, "time": 0.63, "memory": 14080.0, "status": "done"}, {"code": "# B - NarrowRectanglesEasy\ndef main():\n    W, a, b = map(int, input().split())\n\n    if a > b:\n        print(max(0, a-b-W))\n    else:\n        print(max(0, b-a-W))\n        \ndef __starting_point():\n    main()\n__starting_point()", "passed": true, "time": 0.25, "memory": 14284.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nif a <= b:\n    print(b - w - a if b - w - a > 0 else 0)\nelse :\n    print(a - w - b if a - w - b > 0 else 0)", "passed": true, "time": 0.14, "memory": 14304.0, "status": "done"}, {"code": "W, a, b = map(int, input().split())\nif abs(a-b) < W:\n    ans = 0\nelse:\n    ans = abs(a-b) - W\nprint(ans)", "passed": true, "time": 0.15, "memory": 14084.0, "status": "done"}, {"code": "w,a,b = list(map(int,input().split()))\nans = 0\nif a+w<b:\n    ans = b-(a+w)\nelif b<a:\n    ans = a-(b+w)\nelse:\n    ans = 0\nprint(ans)\n", "passed": true, "time": 0.17, "memory": 14348.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif a<=b:\n  print(max(0,b-(a+w)))\nelse:\n  print(max(0,a-(b+w)))", "passed": true, "time": 0.14, "memory": 14292.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\n#a,a+w b,b+w\nif b<=a<=b+w or a<=b<=a+w:\n  print(0)\nelse:\n  print(min(abs(b-a-w),abs(b+w-a)))", "passed": true, "time": 0.14, "memory": 14200.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nif a>b:\n    if a<=b+W:\n        print('0')\n    else :\n        print(a-b-W)\nelif b>a:\n    if b<=a+W:\n        print('0')\n    else :\n        print(b-a-W)\nelse:\n    print('0')", "passed": true, "time": 0.14, "memory": 14300.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nif a <= b <= a+w or b <= a <= b+w:\n    print(\"0\")\nelif a+w < b:\n    print(b-(a+w))\nelse:\n    print(a-(b+w))", "passed": true, "time": 0.14, "memory": 14216.0, "status": "done"}, {"code": "W, a, b = list(map(int, input().split()))\nif b+W < a:\n    print((a-(b+W)))\nelif b > a+W:\n    print((b-(a+W)))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14360.0, "status": "done"}, {"code": "w,a,b=list(map(int,input().split()))\nif a<b:\n    print((b-a-w if b-a-w>0 else 0))\nelse:\n    print((a-b-w if a-b-w>0 else 0))\n", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "#n = int(input())\nw, a, b = list(map(int, input().split()))\n#l = list(map(int,input().split()))\n#l = [list(map(int,input().split())) for i in range(n)]\n\nif a <= b:\n    ans = max(0, b-(a+w))\nelse:\n    ans = max(0, a-(b+w))\nprint(ans)\n", "passed": true, "time": 0.14, "memory": 14060.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nif b>=a:\n  print(max(0,b-(a+w)))\nelse:\n  print(max(0,a-(b+w)))", "passed": true, "time": 0.14, "memory": 14084.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nif a+w < b:\n    print(b-(a+w))\nelif b+w < a:\n    print(a-(b+w))\nelse:\n    print(0)", "passed": true, "time": 0.14, "memory": 14260.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nans=0\nif a+W<b:\n    ans=b-(a+W)\nelif b+W<a:\n    ans=a-(b+W)\nprint(ans)", "passed": true, "time": 0.14, "memory": 14288.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nprint(max(a, b) - min(a, b) - w) if abs(a -  b) > w else print(0)", "passed": true, "time": 0.14, "memory": 14204.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\naw = a+w\nbw =b+w\nprint(max(0,a-bw,b-aw))", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nprint(max(0,b-a-W,a-b-W))", "passed": true, "time": 0.14, "memory": 14296.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nif a + w < b:\n  print((b - (a + w)))\nelif b + w < a:\n  print((a - (b + w)))\nelse:\n  print((0))\n", "passed": true, "time": 0.14, "memory": 14376.0, "status": "done"}, {"code": "w,a,b = map(int,input().split())\nn = max(a,b)-(min(a,b)+w)\nif n < 0:\n    print(0)\nelse:\n    print(n)", "passed": true, "time": 0.22, "memory": 14172.0, "status": "done"}, {"code": "w, a, b = list(map(int, input().split()))\nans = abs(a - b) - w\nprint(ans) if ans > 0 else print(0)", "passed": true, "time": 0.21, "memory": 14216.0, "status": "done"}, {"code": "W,a,b=list(map(int,input().split()))\nprint(0 if W>abs(a-b) else abs(a-b)-W)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\nl = max(a, b) - min(a, b)\nprint(l - w if l > w else 0)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif a<b:\n  if a+w<b:\n    print(b-a-w)\n  else:\n    print(0)\nelif a>b:\n  if b+w<a:\n    print(a-b-w)\n  else:\n    print(0)\nelse:\n  print(0)", "passed": true, "time": 0.14, "memory": 14172.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif b<=a+w<=b+w or b<=a<=b+w:\n    print(0)\nelse:\n    print(min(abs(a+w-b),abs(b+w-a)))", "passed": true, "time": 0.14, "memory": 14232.0, "status": "done"}, {"code": "W, A, B = map(int, input().split())\nprint(max(abs(B-A)-W, 0))", "passed": true, "time": 0.14, "memory": 14056.0, "status": "done"}, {"code": "W, a, b = list(map(lambda x: int(x), input().split(\" \")))\nm = min([a,b])\nM = max([a,b])\n\nif M - m > W:\n  print(M - m - W)\nelse:\n  print(0)", "passed": true, "time": 0.14, "memory": 14276.0, "status": "done"}, {"code": "w, a, b = map(int, input().split())\n\nif a + w < b:\n    print(b - a - w)\nelif  a < b + w:\n    print(0)\nelse:\n    print(a - b - w)", "passed": true, "time": 0.14, "memory": 14252.0, "status": "done"}, {"code": "w,a,b=map(int,input().split())\nif ((a<=b and b<=a+w) or (a<=b+w and b<=a)):\n    print(0)\nelif a+w<b:\n    print(b-a-w)\nelse:\n    print(a-b-w)", "passed": true, "time": 0.14, "memory": 14308.0, "status": "done"}, {"code": "W,a,b=map(int,input().split())\nif b>a:\n  if b-(a+W)<=0:\n  \tprint(0)\n  \treturn\n  print(b-(a+W))\nelse:\n  if a-(b+W)<=0:\n  \tprint(0)\n  \treturn\n  print(a-(b+W))", "passed": true, "time": 0.14, "memory": 14256.0, "status": "done"}, {"code": "#k = int(input())\n#s = input()\n#a, b = map(int, input().split())\n#s, t = map(str, input().split())\n#l = list(map(int, input().split()))\n#l = [list(map(int,input().split())) for i in range(n)]\n#a = [list(input()) for _ in range(n)]\n\n\nW,a,b = list(map(int, input().split()))\n\nif (b+W < a):\n    print((a-(b+W)))\nelif (a+W < b):\n    print((b-(a+W)))\nelse:\n    print((0))\n", "passed": true, "time": 0.14, "memory": 14104.0, "status": "done"}]