#include <bits/stdc++.h>
using namespace std;
const int maxn = 100010;
vector<int> a(maxn);
int main() {
  int n;
  cin >> n;
  for (int i = 0; i < n; i++) cin >> a[i];
  for (int i = 0; i < n - 1; i++) a[i] += a[i + 1];
  for (int i = 0; i < n; i++) cout << a[i] << " ";
  cout << endl;
  return 0;
}
