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