Sahil's submission of ATM | CodeChef