#include <bits/stdc++.h>
using namespace std;
using ll = long long;

int main()
{
	int N;
	cin >> N;
	vector<ll> A(N + 2);
	ll sum = 0;
	for (int i = 0; i < N; i++) {
		cin >> A[i + 1];
		sum += abs(A[i + 1] - A[i]);
	}
	sum += abs(A[N]);
	for (int i = 0; i < N; i++) {
		ll tmp = sum - (abs(A[i + 1] - A[i]) + abs(A[i + 2] - A[i + 1]) - abs(A[i + 2] - A[i]));
		cout << tmp << endl;
	}
	return 0;
}
