A sequence of length is sorted if for every .
Rearrange the elements of to obtain a sequence that is not sorted, and print one such sequence. If no such sequence exists, print -1.
The input is given in the following format.
If a rearrangement that is not sorted exists, print any such sequence on one line, separated by spaces. Otherwise print -1.
The first line contains the integer . The second line contains space-separated integers .
| 5 | 39 | No additional constraints. |