A = list(map(int,input().split()))

A.sort()

ans = A[2]-A[1] + A[1]-A[0]

print(ans)
A = list(map(int,input().split()))

A.sort()

ans = A[2]-A[0]

print(ans)

A = list(map(int, input().split()))
A.sort()
ans = A[2] - A[1] + A[1] - A[0]
print(ans)

A = list(map(int, input().split()))
A.sort()
ans = A[2] - A[0]
print(ans)

-ans = A[2] - A[1] + A[1] - A[0] +ans = A[2] - A[0]