Bui Nguyen Ngoc Thang's submission of Mahasena | CodeChef