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