read
tr ' ' '\n'|awk 'function a(x){return x<0?-x:x}{b[NR]=$0}END{for(i=1;i<NR;i++)s+=a(b[i]-b[i+1]);s+=a(b[1])+a(b[NR]);print s-a(b[1])-a(b[1]-b[2])+a(b[2]);for(i=2;i<NR;i++)print s-a(b[i-1]-b[i])-a(b[i]-b[i+1])+a(b[i-1]-b[i+1]);print s-a(b[NR-1]-b[NR])-a(b[NR])+a(b[NR-1])}'