Andrey's submission of Median | CodeChef