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