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