Gaurav Chandak's submission of ATM | CodeChef