Abhinav Jain's submission of ATM | CodeChef