// yuki 965 門松列が嫌い // 2019.1.13 bal4u #include int getchar_unlocked(void); #define gc() getchar_unlocked() int in() { // 非負整数の入力 int n = 0, c = gc(); do n = 10 * n + (c & 0xf); while ((c = gc()) >= '0'); return n; } #define ABS(a) ((a)>=0?(a):-(a)) #define MIN(a,b) ((a)<=(b)?(a):(b)) int main() { int A, B, C, ans; A = in(), B = in(), C = in(); ans = MIN(ABS(A-B), ABS(B-C)); ans = MIN(ans, ABS(A-C)); printf("%d\n", ans); return 0; }