N = int(eval(input()))

A = list(map(int,input().split()))

A.insert(0,0)

tot = 0

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

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

tot += abs(A[0]-A[N])

for i in range(1,N):

    a = tot-abs(A[i]-A[i-1])-abs(A[i+1]-A[i])+abs(A[i+1]-A[i-1])

    print(a)

a = tot-abs(A[N]-A[N-1])-abs(0-A[N])+abs(0-A[N-1])

print(a)
N = int(eval(input()))

A = list(map(int,input().split()))

A.insert(0,0)

tot = abs(A[1])

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

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

tot += abs(A[N])

print((tot-abs(A[1])-abs(A[2]-A[1])+abs(A[2])))

for i in range(2,N):

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

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

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

-tot = 0 -for i in range(1, N + 1): +tot = abs(A[1]) +for i in range(2, N + 1): -tot += abs(A[0] - A[N]) -for i in range(1, N): -    a = tot - abs(A[i] - A[i - 1]) - abs(A[i + 1] - A[i]) + abs(A[i + 1] - A[i - 1]) -    print(a) -a = tot - abs(A[N] - A[N - 1]) - abs(0 - A[N]) + abs(0 - A[N - 1]) -print(a) +tot += abs(A[N]) +print((tot - abs(A[1]) - abs(A[2] - A[1]) + abs(A[2]))) +for i in range(2, N): +    print( +        (tot - abs(A[i] - A[i - 1]) - abs(A[i + 1] - A[i]) + abs(A[i + 1] - A[i - 1])) +    ) +print((tot - abs(A[N]) - abs(A[N] - A[N - 1]) + abs(A[N - 1])))