#include <bits/stdc++.h>
using namespace std;
string s;
long long int ct[5];
long long int n, a[100005], b[100005];
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  cin >> n;
  for (long long int i = 1; i <= n; ++i) cin >> a[i];
  b[n] = a[n];
  for (long long int i = n - 1; i >= 1; i--) b[i] = a[i] + a[i + 1];
  for (long long int i = 1; i <= n; ++i) cout << b[i] << " ";
  cout << '\n';
}
