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