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