#include using namespace std; void solve() { int a, b, c; cin >> a >> b >> c; cout << min({abs(a - c), abs(b - a), abs(b - c)}) << endl; } int main() { cin.tie(0); ios::sync_with_stdio(false); solve(); getchar(); }