#include <bits/stdc++.h>
#pragma warning(disable : 4996)
using namespace std;
int IT_MAX = 262144;
const int MOD = 1000000007;
const int INF = 1034567891;
const long long LL_INF = 1234567890123456789ll;
const double PI = acos(-1);
const long double ERR = 1E-11;
long long in[100050];
long long ans[100050];
int main() {
  int N, i;
  scanf("%d", &N);
  for (i = 1; i <= N; i++) scanf("%lld", &in[i]);
  for (i = 1; i <= N; i++) printf("%lld ", in[i] + in[i + 1]);
  return !printf("\n");
}
