K. Sorting Network
time limit per test
2 seconds
memory limit per test
256 megabytes
input
standard input
output
standard output
Example
Input
4
Output
6
1
11
3
6
1
11