#import <stdio.h>
#import <stdlib.h>
typedef long long INT;
int main(){
    INT N;
    scanf("%lld",&N);
    INT *S = (INT*)malloc((N+1)*sizeof(INT));
    S[0] = 0;
    INT sign = 1;
    for(INT i=1;i<=N;i++){
        INT a;
        scanf("%lld",&a);
        S[i] = S[i-1] + sign * a;
        sign *= -1;
    }
    sign = 1;
    for(INT i=1;i<=N;i++){
        printf("%lld", sign * (S[N]-2*S[i-1]));
        sign *= -1;
        if(i<N) printf(" ");
    }
}
