#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  long long prev, cur;
  cin >> n;
  cin >> prev;
  for (int i = 0; i < n - 1; ++i) {
    cin >> cur;
    cout << prev + cur << " ";
    prev = cur;
  }
  cout << cur << endl;
  return 0;
}
