Initial values of elements 4#8969

Initial values of elements 4

1 second
64 megabytes
Easy

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.

Input

The first line contains a natural number . The second line contains integers. Each integer does not exceed in absolute value.

Output

Print the original values of the array elements in a single line, separated by spaces.

Examples

Example 1

Loading
Loading