void main(){
  import std.stdio, std.string, std.conv, std.algorithm;

  int n; rd(n);
  auto a=readln.split.to!(long[]);

  a=0L~a~0L;

  long s=0;
  import std.math;
  for(int i=0; i<=n; i++){
    s+=(a[i+1]-a[i]).abs;
  }
  for(int i=1; i<=n; i++){
    auto t=s;
    t-=(a[i]-a[i-1]).abs;
    t-=(a[i+1]-a[i]).abs;
    t+=(a[i+1]-a[i-1]).abs;
    writeln(t);
  }
}


void rd(T...)(ref T x){
  import std.stdio, std.string, std.conv;
  auto l=readln.split;
  assert(l.length==x.length);
  foreach(i, ref e; x){
    e=l[i].to!(typeof(e));
  }
}
