Initial values of elements 4#8969

Initial values of elements 4

1 segundo
64 megabytes
Fácil

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.

Entrada

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

Salida

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

Ejemplos

Ejemplo 1

Loading
Loading