A, B, C = [int(i) for i in input().strip().split(' ')] print(min(abs(A - B), abs(B - C), abs(C - A)))