Input (grade 13): She returned in the following serial Logopolis, in which the Fourth Doctor regenerated, and remained as a companion of the Fifth Doctor.
Output (grade 12): She returned in the next serial Logopolis, in which the Fourth Doctor regenerated, and remained as a companion of the Fifth Doctor.