import numpy as np

a,b,c=list(map(int,input().split()))

l=[a,b,c]

arr=np.array(l)

m=max(arr)

t=m-arr

#print(t)

s=sum(t)

if s%2==0:

  ans=s//2

else:

  ans=(s+3)//2

print(ans)
a,b,c=list(map(int,input().split()))

m=max(a,b,c)

r=m-a+m-b+m-c

if r%2==0:

  ans=r//2

else:

  ans=(r+3)//2

print(ans)
import numpy as np

a, b, c = list(map(int, input().split()))
l = [a, b, c]
arr = np.array(l)
m = max(arr)
t = m - arr
# print(t)
s = sum(t)
if s % 2 == 0:
    ans = s // 2
else:
    ans = (s + 3) // 2
print(ans)

a, b, c = list(map(int, input().split()))
m = max(a, b, c)
r = m - a + m - b + m - c
if r % 2 == 0:
    ans = r // 2
else:
    ans = (r + 3) // 2
print(ans)

-import numpy as np - -l = [a, b, c] -arr = np.array(l) -m = max(arr) -t = m - arr -# print(t) -s = sum(t) -if s % 2 == 0: -    ans = s // 2 +m = max(a, b, c) +r = m - a + m - b + m - c +if r % 2 == 0: +    ans = r // 2 -    ans = (s + 3) // 2 +    ans = (r + 3) // 2