saegusa's submission of Devasena | CodeChef