#import <stdio.h>
#import <stdlib.h>
#define ABS(a) ((a)>0?(a):(-(a)))

int main(int argc, const char * argv[]) {
    long N;
    scanf("%ld", &N);
    long *A = (long*)malloc(N * sizeof(long));

    long n;
    long i = 0;
    while (scanf("%ld", &n) != EOF) {
        A[i]=n;
        i++;
    }
    
    for (i=0;i<N;i++) {
        long current = 0;
        long sum = 0;
        for (long j=0;j<N;j++) {
            if (i==j) continue;
            sum += ABS(A[j]-current);
            current = A[j];
        }
        sum += ABS(current);
        printf("%ld\n", sum);
    }
    
}
