local mab = math.abs
local n = io.read("*n")
local a = {}
for i = 1, n do
  a[i] = io.read("*n")
end
local b = {mab(a[1])}
for i = 2, n do
  b[i] = mab(a[i] - a[i - 1])
end
b[n + 1] = mab(a[n])
local left = {b[1]}
for i = 2, n + 1 do
  left[i] = left[i - 1] + b[i]
end
local right = {}
for i = 1, n + 1 do right[i] = 0 end
right[n + 1] = b[n + 1]
for i = n, 1, -1 do
  right[i] = right[i + 1] + b[i]
end

for i = 1, n do
  if i == 1 then
    print(mab(a[2]) + right[3])
  elseif i == n then
    print(left[n - 1] + mab(a[n - 1]))
  else
    print(left[i - 1] + right[i + 2] + mab(a[i + 1] - a[i - 1]))
  end
end
