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