#include #include #include int main(){ int a,b,c,ans; scanf("%d %d %d",&a,&b,&c); if((a < b)||(c < b)){ if(a < c)ans = b-c; else ans = b-a; } printf("%d\n",ans); }