void main()
{
    long n = readln.chomp.to!long;
    long[] a = readln.split.to!(long[]);

    long[] b = new long[n+2];
    foreach (i; 1 .. n+1)
    {
        b[i] = a[i-1];
    }

    long total;
    foreach (i; 1 .. n+2)
    {
        total += abs(b[i] - b[i-1]);
    }

    foreach (i; 1 .. n+1)
    {
        writeln(total - abs(b[i]-b[i-1]) - abs(b[i+1]-b[i]) + abs(b[i+1]-b[i-1]));
    }
}

import std.stdio;
import std.string;
import std.array;
import std.conv;
import std.algorithm;
import std.range;
import std.math;
import std.numeric;
import std.container;
import std.typecons;
import std.ascii;
import std.uni;