Avish Kaushik's submission of Mahasena | CodeChef