H. Hot Springs
time limit per test
2 seconds
memory limit per test
1024 megabytes
input
standard input
output
standard output
Examples
Input
3
1 3 4
Output
3 1 4 
Input
6
0 0 1 -1 -6 3
Output
0 0 -1 1 -6 3