deleted's submission of Ancient Magic | CodeChef