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

auto readLine(T=int)() {
    return readln().split.map!(to!T).array;
}

void main() {
    int n;
    readf("%d\n", &n);
    auto a = readLine();
    auto fee = new int[n + 1];
    auto diff = new int[n + 1];

    fee[0] = abs(a[0]);
    foreach (i; 1 .. n) {
        fee[i] = abs(a[i-1] - a[i]);
    }
    fee[n] = abs(a[n-1]);

    auto total = fee.sum;

    /*
      before: 0 == fee[0] ==> a[0] == fee[1] ==> a[1]
      after:  0                              ==> a[1]
    */
    writeln(total - fee[0] - fee[1] + abs(a[1]));
    foreach (i; 1 .. n - 1) {
        /*
          before: a[i-1] == fee[i] ==> a[i] == fee[i+1] ==> a[i+1]
          after:  a[i-1]                                ==> a[i+1]
        */
        writeln(total - fee[i] - fee[i+1] + abs(a[i-1] - a[i+1]));
    }
    /*
      before: a[n-2] == fee[n-1] ==> a[n-1] == fee[n] ==> 0
      after: a[n-2]                         ==> 0
    */
    writeln(total - fee[n-1] - fee[n] + abs(a[n-2]));
}
