55. Three faces of an $8 \times 8 \times 8$ cube are painted blue, and the other three faces are painted red, such that no vertex has three faces of the same color. How many small cubes from this large cube have both a blue and a red face?
Solution. Note that the required cubes are present exactly along the eight edges. Then the quantity is equal to 56.