n=int(eval(input()))

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

count=0

for i in range(n+1):count +=abs(box[i]-box[i+1])

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

    print((count-(abs(box[j-1]-box[j])+abs(box[j]-box[j+1]))+abs(box[j-1]-box[j+1])))
n=int(eval(input()))

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

add.insert(0,0)

add.append(0)

count=0

for i in range(n+1):

    count +=abs(add[i]-add[i+1])

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

    print((count-(abs(add[i-1]-add[i])+abs(add[i]-add[i+1]))+(abs(add[i-1]-add[i+1]))))
n = int(eval(input()))
box = [0] + list(map(int, input().split())) + [0]
count = 0
for i in range(n + 1):
    count += abs(box[i] - box[i + 1])
for j in range(1, n + 1):
    print(
        (
            count
            - (abs(box[j - 1] - box[j]) + abs(box[j] - box[j + 1]))
            + abs(box[j - 1] - box[j + 1])
        )
    )

n = int(eval(input()))
add = list(map(int, input().split()))
add.insert(0, 0)
add.append(0)
count = 0
for i in range(n + 1):
    count += abs(add[i] - add[i + 1])
for i in range(1, n + 1):
    print(
        (
            count
            - (abs(add[i - 1] - add[i]) + abs(add[i] - add[i + 1]))
            + (abs(add[i - 1] - add[i + 1]))
        )
    )

-box = [0] + list(map(int, input().split())) + [0] +add = list(map(int, input().split())) +add.insert(0, 0) +add.append(0) -    count += abs(box[i] - box[i + 1]) -for j in range(1, n + 1): +    count += abs(add[i] - add[i + 1]) +for i in range(1, n + 1): -            - (abs(box[j - 1] - box[j]) + abs(box[j] - box[j + 1])) -            + abs(box[j - 1] - box[j + 1]) +            - (abs(add[i - 1] - add[i]) + abs(add[i] - add[i + 1])) +            + (abs(add[i - 1] - add[i + 1]))