#include <bits/stdc++.h>
using namespace std;
int main() {
  int size = 0, i = 0;
  static int b[1000000] = {}, a[1000000] = {};
  cin >> size;
  for (i = 0; i < size; i++) {
    cin >> b[i];
  }
  a[size - 1] = b[size - 1];
  for (i = size - 2; i >= 0; i--) {
    a[i] = b[i] + b[i + 1];
  }
  for (i = 0; i < size; i++) {
    cout << a[i] << " ";
  }
  return 0;
}
