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

int su[100005];

int main(){
    int n;
    int sum = 0;
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
        scanf("%d",&su[i]);
        sum += abs(su[i] - su[i-1]);
    }
    sum += abs(su[n]);
    for(int i=1;i<=n;i++){
        printf("%d\n", sum + abs(su[i+1] - su[i-1]) - abs(su[i] - su[i-1]) - abs(su[i+1] - su[i]));
    }
}
