n = int(eval(input()))

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



D = [abs(A[i+1]-A[i]) for i in range(len(A)-1)]

base = sum(D)



for i in range(n):

  print((base-D[i]-D[i+1]+abs(A[i+2]-A[i])))
N = int(eval(input()))

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

B = [abs(a-b) for a,b in zip(A,A[1:])]

C = sum(B)



for n in range(N):

  print((C+abs(A[n]-A[n+2])-(B[n]+B[n+1])))
n = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
D = [abs(A[i + 1] - A[i]) for i in range(len(A) - 1)]
base = sum(D)
for i in range(n):
    print((base - D[i] - D[i + 1] + abs(A[i + 2] - A[i])))

N = int(eval(input()))
A = [0] + list(map(int, input().split())) + [0]
B = [abs(a - b) for a, b in zip(A, A[1:])]
C = sum(B)
for n in range(N):
    print((C + abs(A[n] - A[n + 2]) - (B[n] + B[n + 1])))

-n = int(eval(input())) +N = int(eval(input())) -D = [abs(A[i + 1] - A[i]) for i in range(len(A) - 1)] -base = sum(D) -for i in range(n): -    print((base - D[i] - D[i + 1] + abs(A[i + 2] - A[i]))) +B = [abs(a - b) for a, b in zip(A, A[1:])] +C = sum(B) +for n in range(N): +    print((C + abs(A[n] - A[n + 2]) - (B[n] + B[n + 1])))