#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include using namespace std; typedef long long LL; typedef unsigned long long ULL; #define MEM(a,b) memset((a),(b),sizeof(a)) const LL INF = 1e9 + 7; const int N = 1e3 + 10; int main() { //freopen("input.txt", "r", stdin); //freopen("output.txt", "w", stdout); int a, b, c; cin >> a >> b >> c; int ans = min({ abs(a - b),abs(a - c),abs(b - c) }); if (a >= b && b >= c) ans = 0; if (a <= b && b <= c) ans = 0; cout << ans << endl; return 0; }