#include <stdio.h>
int n, a[100100], m;
int abs(int x)
{
	return x > 0 ? x : -x;
}
int main(void)
{
	scanf("%d", &n);
	for (int i = 1; i <= n+1; i++)
	{
		if(i<=n)scanf("%d", &a[i]);
		m += abs(a[i] - a[i - 1]);
	}
	for (int i = 1; i <= n; i++)
	{
		printf("%d\n", m - abs(a[i] - a[i - 1]) - abs(a[i + 1] - a[i]) + abs(a[i + 1] - a[i - 1]));
	}
	return 0;
}