27. 1000 identical solid cubes are put together to form a larger solid cube. Now, its surface is painted red, and then it is separated into 1000 cubes. Therefore, the number of cubes with three faces painted is $\qquad$; the number of cubes with only two faces painted is $\qquad$; the number of cubes with only one face painted is $\qquad$; the number of cubes with no faces painted is $\qquad$.
Answer: 8; 96; 384; 512