Each element of an array with integers has been modified by adding the sum of all preceding elements. Given this updated array, your task is to reconstruct the original array values.
The first line contains a natural number . The second line contains integers. Each integer does not exceed in absolute value.
Print the original values of the array elements in a single line, separated by spaces.
Example 1