manas agrawal's submission of ATM | CodeChef