Sagar Pathare's submission of ATM | CodeChef