#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)

int main() {
  int n,s;
  cin >> n;
  vector<int>a(n+1);
  a[n] = 0;
  cin >> a[0];
  s = abs(a[0]);
  for(int i = 1;i <= n;i++){
    cin >> a[i];
    s += abs(a[i]-a[i-1]);
  }
  rep(i,n){
    cout << s+abs(a[i-1]-a[i+1])-abs(a[i]-a[i-1])-abs(a[i]-a[i+1]) << endl;
  }
}