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