#RELAY2J. Indifferent

Indifferent

Score : 100100 points

Problem Statement

We have 2N2N pots. The market price of the ii-th pot (1i2N)(1 \leq i \leq 2N) is pip_i yen (the currency of Japan).

Now, you and Lunlun the dachshund will alternately take one pot. You will go first, and we will continue until all the pots are taken by you or Lunlun. Since Lunlun does not know the market prices of the pots, she will always choose a pot randomly from the remaining pots with equal probability. You know this behavior of Lunlun, and the market prices of the pots.

Let the sum of the market prices of the pots you take be SS yen. Your objective is to maximize the expected value of SS. Find the expected value of SS when the optimal strategy is adopted.

Constraints

  • 1N1051 \leq N \leq 10^5
  • 1pi2×1051 \leq p_i \leq 2 \times 10^5
  • All input values are integers.

Input

Input is given from Standard Input in the following format:

NN

p1p_1

::

p2Np_{2N}

Output

Print the expected value of SS when the strategy to maximize the expected value of SS is adopted. The output is considered correct if its absolute or relative error from the judge's output is at most 10910^{-9}.

1
150000
108
150000.0

Naturally, you should choose the 150000150000 yen pot.

2
50000
50000
100000
100000
183333.3333333333

First, you will take one of the 100000100000 yen pots. The other 100000100000 yen pot will become yours if it is not taken in Lunlun's next turn, with probability 2/32/3. If it is taken, you will have to settle for a 5000050000 yen pot. Thus, the expected value of SS when the optimal strategy is adopted is $2/3 \times (100000 + 100000) + 1/3 \times (100000 + 50000) = 183333.3333 \cdots$