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