Jyoti Agrawal's submission of ATM | CodeChef