manas agrawal's submission of Mahasena | CodeChef