A cuboid with a length of 10 cm, a width of 8 cm, and a height of 7 cm is painted red on the surface and then sawn into small cubes of 1 cubic centimeter. How many small cubes are there that have at least one surface painted with red?
一个长10厘米，宽8厘米，高7厘米的长方体的表面涂上红色后，再锯成1立方厘米的小正方体，至少1个面涂有红色的小正方体有多少个．
<gadget id="calculator">10 * 8 * 7</gadget>
<output>560</output>

<gadget id="calculator">10 - 2</gadget>
<output>8</output>

<gadget id="calculator">8 - 2</gadget>
<output>6</output>

<gadget id="calculator">7 - 2</gadget>
<output>5</output>

<gadget id="calculator">8 * 6 * 5</gadget>
<output>240</output>

<gadget id="calculator">560 - 240</gadget>
<output>320</output>

<result>320</result>