{"raw_statement":[{"iden":"problem statement","content":"We have $2N$ pots. The market price of the $i$\\-th pot $(1 ≤ i ≤ 2N)$ is $p_i$ yen (the currency of Japan).\nNow, 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.\nLet the sum of the market prices of the pots you take be $S$ yen. Your objective is to maximize the expected value of $S$. Find the expected value of $S$ when the optimal strategy is adopted."},{"iden":"constraints","content":"*   $1 ≤ N ≤ 10^5$\n*   $1 ≤ p_i ≤ 2 × 10^5$\n*   All input values are integers."},{"iden":"input","content":"Input is given from Standard Input in the following format:\n\n$N$\n$p_1$\n$:$\n$p_{2N}$"},{"iden":"sample input 1","content":"1\n150000\n108"},{"iden":"sample output 1","content":"150000.0\n\nNaturally, you should choose the $150000$ yen pot."},{"iden":"sample input 2","content":"2\n50000\n50000\n100000\n100000"},{"iden":"sample output 2","content":"183333.3333333333\n\nFirst, you will take one of the $100000$ yen pots. The other $100000$ yen pot will become yours if it is not taken in Lunlun's next turn, with probability $2/3$. If it is taken, you will have to settle for a $50000$ yen pot. Thus, the expected value of $S$ when the optimal strategy is adopted is $2/3 × (100000 + 100000) + 1/3 × (100000 + 50000) = 183333.3333…$"}],"translated_statement":null,"sample_group":[],"show_order":["default"],"formal_statement":null,"simple_statement":null,"has_page_source":true}