#include <stdio.h>
#include <algorithm>
using namespace std;

int N,A[100100]; long long S;

int main()
{
	scanf ("%d",&N);
	for (int i=1;i<=N;i++) scanf ("%d",&A[i]);
	for (int i=1;i<=N+1;i++) S += abs(A[i]-A[i-1]);

	for (int i=1;i<=N;i++){
		printf ("%lld\n",S-abs(A[i-1]-A[i])-abs(A[i]-A[i+1])+abs(A[i-1]-A[i+1]));
	}

	return 0;
}