Initial values of elements 2#8967

Initial values of elements 2

1 second
64 megabytes
Very easy

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.

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 array values in a single line, separated by spaces.

Examples

Example 1

Loading
Loading