Task 1. Boys and girls formed a circle in such a way that the number of children whose right neighbor is of the same gender is equal to the number of children whose right neighbor is of a different gender. What could be the total number of children in the circle?