#include <bits/stdc++.h>
using namespace std;
template <typename T>
T gcd(T a, T b) {
  if (a == 0) return b;
  return gcd(b % a, a);
}
template <typename T>
void read(T &x) {
  register T c = getchar();
  x = 0;
  int t = 0;
  if (c == '-') t = 1, c = getchar();
  for (; (c < 48 || c > 57); c = getchar())
    ;
  for (; c > 47 && c < 58; c = getchar()) {
    x = (x << 1) + (x << 3) + c - 48;
  }
  if (t) x = -x;
}
int main() {
  int n;
  long long int x, b4;
  cin >> n;
  int temp = n;
  for (int i = 1; i <= n; i++) {
    cin >> x;
    if (i == 1) {
      b4 = x;
      continue;
    }
    cout << x + b4 << " ";
    b4 = x;
  }
  cout << x;
}
