chandan's submission of UMF 2018 | CodeChef