Contr-operation
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
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.
Input
In a single line given the number of Vasily's marks (no more than 100), and then the marks themselves.
Output
Print the changed marks in the same order.
Examples
Input #1
Answer #1
Input #2
Answer #2
Submissions 12K
Acceptance rate 57%