Nikolay Domashenko's submission of Mahasena | CodeChef