Initial values of elements 2#8967

Initial values of elements 2

1 segundo
64 megabytes
Muy fácil

Each element of an array with integers has been modified by adding the array's largest element and subtracting its smallest element. These modified values are provided in the same order as the original 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 array values in a single line, separated by spaces.

Ejemplos

Ejemplo 1

Loading
Loading