Vivek Agrawal's submission of ATM | CodeChef