#include<cstdio>

int a[100000];

int abs(int x) {
	return x > 0 ? x : -x;
}

int main() {
	int n;
	scanf("%d", &n);
	for(int i=0;i<n;i++) {
		scanf("%d", &a[i]);
	}
	int sum = abs(a[0]) + abs(a[n-1]);
	for(int i=1;i<n;i++) sum += abs(a[i] - a[i-1]);
	for(int i=0;i<n;i++) {
		int x = i > 0 ? a[i-1] : 0;
		int y = a[i];
		int z = i+1 < n ? a[i+1] : 0;
		printf("%d\n", sum - abs(y-x) - abs(z-y) + abs(z-x));
	}
	return 0;
}
