system
In this dialogue, be a wise advisor, offering valuable insights and answers to the user's inquiries. Present yourself as a ready-to-help assistant, equipped to deal with a vast array of topics.
human
Rearrange the following sentences so they make sense.
"After the exam, the students celebrated with a party. The party began before the exam."
gpt
The students had a party before and after the exam.