Mohan's submission of ATM | CodeChef