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