iN = int(eval(input()))

aA = [0] + [int(_) for _ in input().split()] + [0]

iAll = sum([abs(aA[i+1]-aA[i]) for i in range(iN+1)])

print(("\n".join([str( iAll - abs(aA[i-1]-aA[i]) - abs(aA[i]-aA[i+1]) + abs(aA[i-1]-aA[i+1])) for i in range(1,iN+1)])))

#mapってそんなに速ないんけ？

iN = int(eval(input()))

aA = [0] + [int(_) for _ in input().split()] + [0]

iAll = sum([abs(aA[i+1]-aA[i]) for i in range(iN+1)])

print(("\n".join(map(str,[iAll - abs(aA[i-1]-aA[i]) - abs(aA[i]-aA[i+1]) + abs(aA[i-1]-aA[i+1]) for i in range(1,iN+1)]))))

iN = int(eval(input()))
aA = [0] + [int(_) for _ in input().split()] + [0]
iAll = sum([abs(aA[i + 1] - aA[i]) for i in range(iN + 1)])
print(
    (
        "\n".join(
            [
                str(
                    iAll
                    - abs(aA[i - 1] - aA[i])
                    - abs(aA[i] - aA[i + 1])
                    + abs(aA[i - 1] - aA[i + 1])
                )
                for i in range(1, iN + 1)
            ]
        )
    )
)

# mapってそんなに速ないんけ？
iN = int(eval(input()))
aA = [0] + [int(_) for _ in input().split()] + [0]
iAll = sum([abs(aA[i + 1] - aA[i]) for i in range(iN + 1)])
print(
    (
        "\n".join(
            map(
                str,
                [
                    iAll
                    - abs(aA[i - 1] - aA[i])
                    - abs(aA[i] - aA[i + 1])
                    + abs(aA[i - 1] - aA[i + 1])
                    for i in range(1, iN + 1)
                ],
            )
        )
    )
)

+# mapってそんなに速ないんけ？ -            [ -                str( +            map( +                str, +                [ -                ) -                for i in range(1, iN + 1) -            ] +                    for i in range(1, iN + 1) +                ], +            )