Andrey Kim's submission of Predictopus | CodeChef