#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int n;
  cin >> n;
  long long int a[100005] = {0};
  for (int i = 1; i <= n; i++) cin >> a[i];
  a[n + 1] = 0;
  for (int i = 1; i <= n; i++) {
    cout << a[i] + a[i + 1];
    cout << " ";
  }
  return 0;
}
