#include <bits/stdc++.h>
using namespace std;
const double PI = 22.0 / 7.0;
const double EPS = 1e-6;
const int infi = (int)1e9;
const long long infl = (long long)1e16;
const int MOD = (int)1e9 + 7;
const int MAX = (int)1e5 + 9;
const int dx[] = {1, -1, 0, 0, 1, -1, 1, -1};
const int dy[] = {0, 0, -1, 1, 1, 1, -1, -1};
long long a[MAX], n, b[MAX];
int main() {
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  b[n - 1] = a[n - 1];
  for (int i = n - 2; i >= 0; i--) b[i] = a[i + 1] + a[i];
  for (int i = 0; i < n; i++) cout << b[i] << " ";
  return 0;
}
