chandan's submission of Post TML 2018 | CodeChef