#include <bits/stdc++.h>
using namespace std;
int arr[100000];
int ans[100000];
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> arr[i];
  }
  for (int i = n - 1; i >= 0; i--) {
    if (i == n - 1)
      ans[i] = arr[i];
    else
      ans[i] = arr[i] + arr[i + 1];
  }
  for (int i = 0; i < n; i++) {
    cout << ans[i] << " ";
  }
  cout << endl;
  return 0;
}
