#include <bits/stdc++.h>
int b[1000005], a[1000005];
int main() {
  int n, i;
  scanf("%d", &n);
  for (i = 0; i < n; i++) scanf("%d", &a[i]);
  b[n - 1] = a[n - 1];
  for (i = n - 2; i >= 0; i--) b[i] = a[i] + a[i + 1];
  for (i = 0; i < n; i++) printf("%d ", b[i]);
  printf("\n");
  return 0;
}
