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

void main() {
    auto N = readln.chomp.to!int;
    auto A = 0 ~ readln.split.to!(long[]);

    auto cost = iota(N+1).map!(i => abs(A[i] - A[(i+1)%(N+1)])).array;
    
    auto total = cost.sum;

    N.iota.array.each!(i => writeln(total - cost[i] - cost[(i+1)%(N+1)] + abs(A[i] - A[(i+2)%(N+1)])));
}

