8. There are several socks of black, white, and yellow colors. To ensure you can form two pairs of the same color in the dark, you need to take out at least $\qquad$ socks (for example: one pair black and one pair yellow does not meet the requirement).