N = int(eval(input()))

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

dis = 0

for i in range(1, N+2):

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

for i in range(1, N+1):

  print((dis - abs(A[i] - A[i-1]) - abs(A[i+1] - A[i]) + abs(A[i+1]-A[i-1])))

N = int(eval(input()))

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



maxMoney = sum([abs(A[i+1]-A[i]) for i in range(N+1)])

for i in range(1,N+1):

  print((maxMoney-abs(A[i-1]-A[i])-abs(A[i+1]-A[i])+abs(A[i+1]-A[i-1])))
N = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
dis = 0
for i in range(1, N + 2):
    dis += abs(A[i] - A[i - 1])
for i in range(1, N + 1):
    print(
        (dis - abs(A[i] - A[i - 1]) - abs(A[i + 1] - A[i]) + abs(A[i + 1] - A[i - 1]))
    )

N = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
maxMoney = sum([abs(A[i + 1] - A[i]) for i in range(N + 1)])
for i in range(1, N + 1):
    print(
        (
            maxMoney
            - abs(A[i - 1] - A[i])
            - abs(A[i + 1] - A[i])
            + abs(A[i + 1] - A[i - 1])
        )
    )

-dis = 0 -for i in range(1, N + 2): -    dis += abs(A[i] - A[i - 1]) +maxMoney = sum([abs(A[i + 1] - A[i]) for i in range(N + 1)]) -        (dis - abs(A[i] - A[i - 1]) - abs(A[i + 1] - A[i]) + abs(A[i + 1] - A[i - 1])) +        ( +            maxMoney +            - abs(A[i - 1] - A[i]) +            - abs(A[i + 1] - A[i]) +            + abs(A[i + 1] - A[i - 1]) +        )