zhuynan's submission of Devasena | CodeChef