a,b,c=input().split() M=(max(a,b,c)) m=(min(a,b,c)) print(M-m)