In this task, you're given a short story of five sentences written in natural language. However, the order of the given story is not correct. Your job is to return the correct order for the given five sentences to create a coherent short story with the new order that has the correct flow. Generate your answer using the number of sentences in the correct order, such as '23415'.

Input: Consider Input: 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: 43251

Input: Consider Input: Sentence1: He is proud that the coffee he made at home is so good. Sentence2: One day Hector decides to brew coffee at home. Sentence3: Hector kept brewing his own coffee and saved money. Sentence4: Hector has always bought coffee at a local shop before work. Sentence5: He realizes that his coffee buying habit is very expensive.

Output: 43512

Input: Consider Input: Sentence1: Dennis entered a surfing competition. Sentence2: Then he got the best wave of his life. Sentence3: Later he did much better as the competition winded down. Sentence4: He did poorly at first, and he fell off a lot. Sentence5: Dennis won the competition.
Output: 14325