#include #include #include #include #include #include #include #include #include #include #include #include using namespace std; using ll = long long; int main(){ vector c(3); for (int i=0; i<3; i++) cin >> c[i]; sort(c.begin(), c.end()); cout << c[2]-c[0] << endl; return 0; }