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