N = int(eval(input()))

A = [0] + [int(x) for x in input().split()] + [0]



cnt = 0

for i in range(N+1):

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

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

    print((cnt - (abs(A[j]-A[j-1]) + abs(A[j+1]-A[j])) + abs(A[j+1]-A[j-1])))

    
N = int(eval(input()))

A = [0] + [int(x) for x in input().split()] + [0]



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



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

    print((cnt - (abs(A[j]-A[j-1]) + abs(A[j+1]-A[j])) + abs(A[j+1]-A[j-1])))

N = int(eval(input()))
A = [0] + [int(x) for x in input().split()] + [0]
cnt = 0
for i in range(N + 1):
    cnt += abs(A[i + 1] - A[i])
for j in range(1, N + 1):
    print(
        (cnt - (abs(A[j] - A[j - 1]) + abs(A[j + 1] - A[j])) + abs(A[j + 1] - A[j - 1]))
    )

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

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