local mab = math.abs
local n = io.read("*n", "*l")
local str = io.read()
local a = {}
for v in str:gmatch("%-?%d+") do
  table.insert(a, tonumber(v))
end
local sum = mab(a[1]) + mab(a[n])
for i = 1, n - 1 do
  sum = sum + mab(a[i] - a[i + 1])
end
print(sum - mab(a[1]) - mab(a[1] - a[2]) + mab(a[2]))
for i = 2, n - 1 do
  print(sum - mab(a[i] - a[i - 1]) - mab(a[i] - a[i + 1]) + mab(a[i - 1] - a[i + 1]))
end
print(sum - mab(a[n]) - mab(a[n] - a[n - 1]) + mab(a[n - 1]))
