#include <bits/stdc++.h>
using namespace std;
const int N = 512345, LG = 21, mod = 1000000007;
const double eps = 1e-3, pi = acos(-1.0);
int a[N], b[N];
int main() {
  int n;
  scanf("%d", &n);
  for (int i = 1; i <= n; ++i) scanf("%d", &a[i]);
  for (int i = n; i > 0; --i) {
    b[i] = a[i] + a[i + 1];
  }
  for (int i = 1; i <= n; ++i) printf("%d ", b[i]);
  printf("\n");
  return 0;
}
