Hacker Vasily got access to the class book and wants to change all his minimum marks to maximum. Write a program that changes Vasily's marks, but vice versa.
A single line contains the number of Vasily's marks (n \leq 100), followed by the marks themselves.
Print the changed marks in the same order.
Example 1
Example 2