n,*a=list(map(int,open(0).read().split()))

a=[0]+a+[0]

A=abs

c=sum(A(j-i)for i,j in zip(a,a[1:]))

for i,j,k in zip(a,a[1:],a[2:]):print((c-A(j-i)-A(k-j)+A(k-i)))
_,a=open(0)

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

A=abs

c=sum(A(j-i)for i,j in zip(a,a[1:]))

for i,j,k in zip(a,a[1:],a[2:]):print((c-A(j-i)-A(k-j)+A(k-i)))
n, *a = list(map(int, open(0).read().split()))
a = [0] + a + [0]
A = abs
c = sum(A(j - i) for i, j in zip(a, a[1:]))
for i, j, k in zip(a, a[1:], a[2:]):
    print((c - A(j - i) - A(k - j) + A(k - i)))

_, a = open(0)
a = [0] + list(map(int, a.split())) + [0]
A = abs
c = sum(A(j - i) for i, j in zip(a, a[1:]))
for i, j, k in zip(a, a[1:], a[2:]):
    print((c - A(j - i) - A(k - j) + A(k - i)))

-n, *a = list(map(int, open(0).read().split())) -a = [0] + a + [0] +_, a = open(0) +a = [0] + list(map(int, a.split())) + [0]