#include <bits/stdc++.h>
using namespace std;
const int INF = 1e9 + 5;
const int MOD = 1000000007;
int main() {
  int n;
  scanf("%d", &n);
  ;
  int num;
  cin >> num;
  n--;
  int temp;
  while (n--) {
    temp;
    cin >> temp;
    cout << num + temp << " ";
    num = temp;
  }
  cout << temp;
}
