Is this the only consideration when creating the class.
Are all other students just randomly assigned a class?
If one student requests most be ignored in order for the class to be split correctly, do we just randomly choose a student to ignore?
Most probably the principle or teacher wants to decide what to ignore, and what to honor, so how can the computer do it for you?