Hacker Vasily got an 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.
In a single line given the number of Vasily's marks (no more than 100), and then the marks themselves.
Print the changed marks in the same order.