Contr-operation#1952

Contr-operation

1 second
128 megabytes
Easy

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.

Input

A single line contains the number of Vasily's marks (n \leq 100), followed by the marks themselves.

Output

Print the changed marks in the same order.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading