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