yaman goel's submission of Mahasena | CodeChef