import std.stdio, std.conv, std.array, std.range, std.algorithm, 
  std.string, std.math;

void main(){
    auto n =  readln.chomp.to!long;
    auto as = [0L] ~ readln.chomp.split.to!(long[]) ~ [0L];

    long[] ans = [];
    long s = 0;
  	foreach(i; 0 .. n + 1) s += abs(as[i] - as[i + 1]);
    foreach(i; 1 .. n + 1){
        auto d = abs(as[i] - as[i - 1]) + abs(as[i] - as[i + 1])
          - abs(as[i - 1] - as[i + 1]);
        ans ~= s - d;
    }
    foreach(a; ans) a.writeln;
}