#include <bits/stdc++.h>
using namespace std;
long long a[100444];
long long b[100444];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; i++) {
    scanf("%I64d", &a[i]);
  }
  for (int i = 1; i < n; i++) {
    b[i] = a[i] + a[i + 1];
  }
  b[n] = a[n];
  for (int i = 1; i <= n; i++) {
    if (i == 1)
      printf("%I64d", b[i]);
    else
      printf(" %I64d", b[i]);
  }
  printf("\n");
}
