Ashok's submission of ATM | CodeChef