#include <bits/stdc++.h>
using namespace std;
int main() {
  std::ios_base::sync_with_stdio(0);
  unsigned long long n;
  long long int a[100000], b;
  cin >> n;
  for (int i = 0; i < n; i++) {
    cin >> a[i];
  }
  for (int i = 0; i < n - 1; i++) {
    b = a[i] + a[i + 1];
    cout << b << " ";
  }
  cout << a[n - 1];
  return 0;
}
