#include #include #include using namespace std; using ll = long long; int main() { int a, b, c; cin >> a >> b >> c; cout << min(min(abs(a-b),abs(a-c)),abs(b-c)) << endl; return 0; }