You will be given a definition of a task first, then some input of the task.
In this task, you're given a four sentences of story written in natural language. Your job is to complete end part of the story by predicting appropriate last sentence which is coherent with the given sentences.

Sentence1: It was halfway through the semester, and John was failing his classes. Sentence2: He decided to go to the library and study. Sentence3: At the library, John saw one of his professors. Sentence4: John pretended not to see him, and started studying.
Output:
The professor walked past and said that he was glad to see John trying