#include #include int main(void) { int a, b, c; int ba, bc, ac; scanf("%d%d%d", &a, &b, &c); ba = b - a; bc = b - c; ac = abs(a - c); if(ba > bc){ if(bc > ac){ printf("%d\n", ac); } else{ printf("%d\n", bc); } } else{ if(ba < ac){ printf("%d\n", ba); } else{ printf("%d\n", ac); } } return 0; }