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