#include <bits/stdc++.h>
using namespace std;
int main() {
  long long n;
  cin >> n;
  vector<long long> a, b;
  a.resize(n);
  b.resize(n);
  for (long long i = 0; i < n; i++) {
    cin >> a[i];
  }
  b[n - 1] = a[n - 1];
  for (long long i = n - 2; i >= 0; i--) {
    b[i] = a[i] + a[i + 1];
  }
  for (long long i = 0; i < n; i++) {
    cout << b[i] << " ";
  }
  cout << endl;
}
