You will be given a definition of a task first, then some input of the task.
You are given a sentence and a question. You're expected to write the correct answer based on the sentence.

Sentence: John and Sue leave work at the same time. They both get on the same train to go home. Question: If John gets home earlier than Sue, who traveled less distance?
Output:
John