In this task, you're given the title of a story consisting of five sentences, numbered 1 through 5. Your job is to arrange the sentences in order to make a story that makes complete sense and is apt for the title. Indicate your answer using the number of the sentences in order, such as '34152'.

Title: A test. Sentence 1: He did not study yesterday. Sentence 2: He was very unhappy. Sentence 3: He did not know they would write a test today. Sentence 4: He did not pass the test. Sentence 5: Martin went to a school this morning.
53142