import std.stdio, std.algorithm, std.string, std.conv, std.array, std.range, std.math;
int readint() { return readln.chomp.to!int; }
int[] readints() { return readln.split.to!(int[]); }


void main() {
    int n = readint();
    int[] a = 0 ~ readints() ~ 0;

    auto d = new int[n + 1];
    foreach (i; 0..n+1) {
        d[i] = abs(a[i] - a[i+1]);
    }
    long D = d.sum;

    foreach (i; 0..n) {
        long x = D - d[i] - d[i+1] + abs(a[i] - a[i+2]);
        writeln(x);
    }
}