#include <bits/stdc++.h>
using namespace std;
void imprimirVector(vector<int> &v) {
  if (!v.empty()) {
    int p = v.size();
    cout << "[";
    for (int i = 0; i < (int)(p - 1); i++) cout << v[i] << ",";
    cout << v[p - 1] << "]" << endl;
  } else
    cout << "[]" << endl;
}
int main() {
  int N;
  cin >> N;
  vector<long long> nums(N);
  for (int i = 0; i < (int)(N); i++) cin >> nums[i];
  for (int i = 0; i < (int)(N - 1); i++) {
    nums[i] += nums[i + 1];
  }
  for (int i = 0; i < (int)(N); i++) cout << nums[i] << " ";
  cout << "\n";
  return 0;
}
