"use strict"; function Main(input) { const num = Number(input.split("\n")[0]); const preseries = input.split("\n")[1].split(" ").map(i => Number(i)); const series = preseries.sort((a, b) => a - b); if (num % 2 === 1) { console.log(series[Math.ceil(num / 2) - 1]); } else { console.log((series[(num / 2) - 1] + series[(num / 2)]) / 2); } } //テストの入力を受け取る Main(require("fs").readFileSync("/dev/stdin", "utf8")); //Main("6\n4 8 2 4 6 5"); //# sourceMappingURL=index.js.map