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