#include<stdio.h>
int main()
{
int a,b,c;
scanf("%d %d %d",&a,&b,&c);
int max,min;
if(a>=b&&a>=c){max=a;}
else if(b>=a&&b>=c){max=b;}
else (c>=b&&c>=a){max=c;}
if(a<=b&&a<=c){min=a;}
else if(b<=a&&b<=c){min=b;}
else (c<=b&&c<=a){min=c;}
printf("%d\n",max-min);
return 0;
}