Output the students grouped by the education periods