/*****************************************************************
 print partial differences of elements of a
 *****************************************************************/
#include <iostream>
using namespace std;

int main()
{
  // read size n, allocate array of n doubles, read values into array
  int n;
  cin >> n;
  double * A = new double[n];
  for(int i = 0; i < n; i++)
    cin >> A[i];

  // Now what?
  double * D = new double[n-1];
  for(int i = 0; i < n-1; i++)
    D[i] = A[i+1] - A[i];
  for(int i = 0; i < n-1; i++)
    cout << D[i] << ' ';
  cout << endl;

  return 0;
}