#include #define REP(i,n) for(int i=0,i##_len=int(n);i>A>>B>>C; int ans=1e9; if((C-B)*(B-A)>=0) ans=0; else{ ans=min(ans,abs(B-A)); ans=min(ans,abs(C-B)); ans=min(ans,abs(C-A)); } cout<