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