a,b,c=map(int,input().split()) mylist=[a,b,c] M=max(mylist) m=min(mylist) print(M-m)