



def solve():

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

    print((max(As)-min(As)))





# Solve

if __name__ == "__main__":

    solve()

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



print((max(alist)-min(alist)))

def solve():
    As = list(map(int, input().split()))
    print((max(As) - min(As)))


# Solve
if __name__ == "__main__":
    solve()

alist = list(map(int, input().split()))
print((max(alist) - min(alist)))

-def solve(): -    As = list(map(int, input().split())) -    print((max(As) - min(As))) - - -# Solve -if __name__ == "__main__": -    solve() +alist = list(map(int, input().split())) +print((max(alist) - min(alist)))