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.
The first line contains a natural number . The second line contains integers. Each integer does not exceed in absolute value.
Print the original array values in a single line, separated by spaces.
Example 1