{"trustable":true,"sections":[{"title":"","value":{"format":"HTML","content":"FJ is surveying his herd to find the most average cow. He wants to know how much milk this \u0027median\u0027 cow gives: half of the cows give as much or more than the median; half give as much or less.\r\u003cbr\u003e\r\u003cbr\u003eGiven an odd number of cows N (1 \u0026lt;\u003d N \u0026lt; 10,000) and their milk output (1..1,000,000), find the median amount of milk given such that at least half the cows give the same amount of milk or more and at least half give the same or less."}},{"title":"Input","value":{"format":"HTML","content":"* Line 1: A single integer N\r\u003cbr\u003e\r\u003cbr\u003e* Lines 2..N+1: Each line contains a single integer that is the milk output of one cow."}},{"title":"Output","value":{"format":"HTML","content":"* Line 1: A single integer that is the median milk output."}},{"title":"Sample","value":{"format":"HTML","content":"\u003ctable class\u003d\u0027vjudge_sample\u0027\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e5\r\n2\r\n4\r\n1\r\n3\r\n5\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003e3\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n"}},{"title":"Hint","value":{"format":"HTML","content":"INPUT DETAILS:\r\u003cbr\u003e\r\u003cbr\u003eFive cows with milk outputs of 1..5\r\u003cbr\u003e\r\u003cbr\u003eOUTPUT DETAILS:\r\u003cbr\u003e\r\u003cbr\u003e1 and 2 are below 3; 4 and 5 are above 3."}}]}