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