Distribution of students to the halls