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