Please help me with the assignment: request the number of students from the user, enter their surnames in random order and divide them into two equal groups so that the namesakes must be in different groups.
How to make the namesakes be in different groups?