#include <bits/stdc++.h>
using namespace std;
const int maxn = 1e6 + 2;
int a[maxn];
int b[maxn];
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 >= 0; i--) b[i] = a[i] + a[i + 1];
  for (int i = 1; i <= n; i++) cout << b[i] << " ";
  cout << endl;
}
