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