#include <bits/stdc++.h>
int aa[100005];
int main(void) {
  int n;
  while (~scanf("%d", &n)) {
    for (int i = 0; i < n; i++) {
      scanf("%d", &aa[i]);
    }
    for (int i = 0; i < n - 1; i++) {
      printf("%d ", aa[i] + aa[i + 1]);
    }
    printf("%d\n", aa[n - 1]);
  }
}
