#include <bits/stdc++.h>
using namespace std;
const int MX = 100010;
int t[MX];
int main() {
  int n;
  cin >> n;
  for (int i = (1); i <= (n); ++i) {
    scanf("%d", &t[i]);
  }
  for (int i = (1); i <= (n); ++i) {
    printf("%d ", t[i] + t[i + 1]);
  }
}
