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 10): In this episode, Bart fails four history exams in a row and the school psychiatrist recommends that Bart repeat the fourth grade.