#include #include #include #include #include #include #include #include #include using namespace std; struct aaa{aaa(){cin.tie(nullptr); ios::sync_with_stdio(false); cout<> a >> b >> c; int ans = 0; if ((aa&&b>c)) ans = min(abs(a-c), min(abs(b-a), abs(b-c))); cout << ans << endl; }