Input (grade 6): Star Trek was canceled at the end of the third season, after 79 episodes were produced.
Output (grade 8): Star Trek was finally canceled at the end of the third season, making 79 episodes in total.