#include #define int long long using namespace std; signed main() { int A, B, C; cin >> A >> B >> C; int ans = min( abs(A-B), abs(B-C) ); cout << ans << endl; }