Question 167
An $8 \times 8 \times 8$ cube consists of $512$ small grey cubes. Three sides of the big cube are painted in white, and the other three sides are painted in red. If each of the eight small cubes in the vertices of the big cube has at least one white and at least one red side, how many small cubes have at least one red and at least one white side?