#include <bits/stdc++.h>
using namespace std;
int a[100005];
int b[100005];
int main() {
  int n;
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> 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++) {
    cout << b[i];
    if (i == n)
      cout << endl;
    else
      cout << " ";
  }
  return 0;
}
