#include using namespace std; int main(){ int A,B,C; cin >> A >> B >> C; cout << min(abs(A-B),min(abs(B-C),abs(C-A))) << endl; return 0; }