Sandesh Agrawal's submission of ATM | CodeChef