Task: Sentence Ordering
Input (English): Sentence1: As a result, he had to find other work. Sentence2: The factory fired him for poor work. Sentence3: He worked in a factory. Sentence4: John was a troubled worker. Sentence5: There once was a man named John.
Output (English): 43251