n = int(eval(input()))

A = [0] + list(map(int, input().split())) + [0]



#普通に総和を出す

sum = 0

for i, a in enumerate(A):

  if i == n+1: break #n+1はゴールなので先に行かない

  sum += abs(a - A[i+1]) #a:A[i]

  

#引いて足す

for i in range(1, n+1, 1): #1～Nを省いたとき

  nowsum = sum

  nowsum -= abs(A[i-1]-A[i])

  nowsum -= abs(A[i]-A[i+1])

  nowsum += abs(A[i-1]-A[i+1])

  print(nowsum)
n = int(eval(input()))

A = [0] + list(map(int, input().split())) + [0]

diff = [abs(A[i]-A[i+1]) for i in range(n+1)]



#普通に総和を出す

sum = sum(diff)

  

#引いて足す

for i in range(1, n+1, 1): #1～Nを省いたとき

  nowsum = sum

  nowsum -= diff[i-1]

  nowsum -= diff[i]

  nowsum += abs(A[i-1]-A[i+1])

  print(nowsum)

n = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
# 普通に総和を出す
sum = 0
for i, a in enumerate(A):
    if i == n + 1:
        break  # n+1はゴールなので先に行かない
    sum += abs(a - A[i + 1])  # a:A[i]
# 引いて足す
for i in range(1, n + 1, 1):  # 1～Nを省いたとき
    nowsum = sum
    nowsum -= abs(A[i - 1] - A[i])
    nowsum -= abs(A[i] - A[i + 1])
    nowsum += abs(A[i - 1] - A[i + 1])
    print(nowsum)

n = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
diff = [abs(A[i] - A[i + 1]) for i in range(n + 1)]
# 普通に総和を出す
sum = sum(diff)
# 引いて足す
for i in range(1, n + 1, 1):  # 1～Nを省いたとき
    nowsum = sum
    nowsum -= diff[i - 1]
    nowsum -= diff[i]
    nowsum += abs(A[i - 1] - A[i + 1])
    print(nowsum)

+diff = [abs(A[i] - A[i + 1]) for i in range(n + 1)] -sum = 0 -for i, a in enumerate(A): -    if i == n + 1: -        break  # n+1はゴールなので先に行かない -    sum += abs(a - A[i + 1])  # a:A[i] +sum = sum(diff) -    nowsum -= abs(A[i - 1] - A[i]) -    nowsum -= abs(A[i] - A[i + 1]) +    nowsum -= diff[i - 1] +    nowsum -= diff[i]