import std.stdio;
import std.conv;
import std.string;
import std.typecons;
import std.algorithm;
import std.array;
import std.range;
import std.math;
import std.regex : regex;
import std.container;
import std.bigint;
import std.numeric;


void main()
{
  auto n = readln.chomp.to!int;
  auto a = readln.chomp.split.to!(int[]);
  auto d = new int[](n+1);
  auto c = new int[](n+1);
  d[0] = a[0];
  c[0] = abs(d[0]);
  d[$-1] = 0 - a[$-1];
  c[$-1] = abs(d[$-1]);
  auto sum = c[0] + c[$-1];
  foreach (i; 1..n) {
    d[i] = a[i] - a[i-1];
    c[i] = abs(d[i]);
    sum += c[i];
  }

  foreach (i; 0..n) {
    writeln(sum - c[i] - c[i+1] + abs((d[i+1] + d[i])));
  }
}
