Rohit Pal's submission of ATM | CodeChef