Akash Jain's submission of ATM | CodeChef