def i1():

 return int(eval(input()))

def i2():

 return [int(i) for i in input().split()]

a=i2()

a.sort()

a=a[::-1]

print((a[0]-a[2]))
def i1():

 return int(eval(input()))

def i2():

 return [int(i) for i in input().split()]

a=i2()

b=[]

a.sort()

print((abs(a[0]-a[1])+abs(a[2]-a[1])))

def i1():
    return int(eval(input()))


def i2():
    return [int(i) for i in input().split()]


a = i2()
a.sort()
a = a[::-1]
print((a[0] - a[2]))

def i1():
    return int(eval(input()))


def i2():
    return [int(i) for i in input().split()]


a = i2()
b = []
a.sort()
print((abs(a[0] - a[1]) + abs(a[2] - a[1])))

+b = [] -a = a[::-1] -print((a[0] - a[2])) +print((abs(a[0] - a[1]) + abs(a[2] - a[1])))