#arc095a. [arc095_a]Many Medians
[arc095_a]Many Medians
Problem Statement
When is an odd number, the median of numbers is the -th largest value among .
You are given numbers , where is an even number. For each , let the median of excluding , that is, the median of be .
Find for each .
Constraints
- is even.
- All values in input are integers.
Input
Input is given from Standard Input in the following format:
...
Output
Print lines. The -th line should contain .
Sample Input 1
4
2 4 4 3
Sample Output 1
4
3
3
4
- Since the median of is , .
- Since the median of is , .
- Since the median of is , .
- Since the median of is , .
Sample Input 2
2
1 2
Sample Output 2
2
1
Sample Input 3
6
5 5 4 4 3 3
Sample Output 3
4
4
4
4
4
4