#include <bits/stdc++.h>
using namespace std;
long long n, a[1123456], b[1123456];
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0), cout.tie(0);
  cin >> n;
  for (int i = 1; i <= n; i++) cin >> a[i];
  a[n + 1] = 0;
  for (int i = 1; i <= n; i++) b[i] = a[i] + a[i + 1];
  for (int i = 1; i <= n; i++) cout << b[i] << ' ';
  cout << '\n';
  return 0;
};
