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