#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int n, m, i, j, k, z, x, y, sum = 0, p, q, ans = 0;
  bool f;
  string s;
  char c;
  cin >> n;
  int a[n];
  for (i = 0; i < n; i++) cin >> a[i];
  ;
  int b[n];
  b[n - 1] = a[n - 1];
  for (i = 0; i < n - 1; i++) b[i] = a[i] + a[i + 1];
  for (i = 0; i < n; i++) cout << b[i] << " ";
  return 0;
}
