Ashish Khatkar's submission of ATM | CodeChef