Read the text and put each student in the correct place