#include <bits/stdc++.h>
#pragma comment(linker, "/STACK:64000000")
using namespace std;
void solve();
int t;
int n;
vector<int> a;
vector<int> b;
int main() {
  int t = 1;
  for (int i = 0; i < t; ++i) {
    solve();
  }
}
void solve() {
  cin >> n;
  a.resize(n);
  b.resize(n);
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  b[n - 1] = a[n - 1];
  for (int i = n - 2; i >= 0; --i) {
    b[i] = a[i + 1] + a[i];
  }
  for (int i = 0; i < n; ++i) {
    cout << b[i] << " ";
  }
}
