Sai Rathan's submission of Mahasena | CodeChef