Task: Sentence Ordering
Input (English): Sentence1: Everyone bought gifts. Sentence2: Pam's house was where the party was. Sentence3: Pam was a good hostess. Sentence4: Everyone danced and had fun! Sentence5: Pam bought a cake.
Output (English): 21543