Input (grade 11): In the episode, Bart fails four consecutive history exams and the school psychiatrist recommends that Bart repeat the fourth grade.
Output (grade 6): In this episode, Bart fails four history exams in a row and the school that Bart repeat the fourth grade.