#include <algorithm>
#include <iostream>
#include <vector>
using namespace std;

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