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