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