wrongcode's submission of Mahasena | CodeChef