#include <bits/stdc++.h>
using namespace std;
int main() {
  long int n;
  cin >> n;
  int a[n + 1], b[n + 1];
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n; i++) {
    if (i != n - 1)
      b[i] = a[i] + a[i + 1];
    else
      b[n - 1] = a[n - 1];
    cout << b[i] << " ";
  }
  cout << '\n';
  return 0;
}
