N = int(eval(input()))

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





s = 0

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

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

    s += x



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

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

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

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

    print((s - x - y + z))

N = int(eval(input()))

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



C = [abs(A[i-1] - A[i]) for i in range(1, N+2)]

S = sum(C)



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

    x = C[i-1]

    y = C[i]

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

    print((S - x - y + z))

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

N = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
C = [abs(A[i - 1] - A[i]) for i in range(1, N + 2)]
S = sum(C)
for i in range(1, N + 1):
    x = C[i - 1]
    y = C[i]
    z = abs(A[i - 1] - A[i + 1])
    print((S - x - y + z))

-s = 0 -for i in range(1, N + 2): -    x = abs(A[i - 1] - A[i]) -    s += x +C = [abs(A[i - 1] - A[i]) for i in range(1, N + 2)] +S = sum(C) -    x = abs(A[i - 1] - A[i]) -    y = abs(A[i] - A[i + 1]) +    x = C[i - 1] +    y = C[i] -    print((s - x - y + z)) +    print((S - x - y + z))