9. There are four teacups with their mouths facing up. Now, each time three of them are flipped, and the flipped teacups are allowed to be flipped again. After $n$ flips, all the cup mouths are facing down. Then the minimum value of the positive integer $n$ is $\qquad$ .