There are 6 identical cuboids whose edge lengths are 4 cm, 5 cm, and 6 cm respectively, and some of their faces are dyed red, so that the faces dyed red in the 6 cuboids are exactly 1 face and 2 faces respectively. , 3 faces, 4 faces, 5 faces and 6 faces. After dyeing, divide all the cuboids into small cubes with an edge length of 1 cm. After the division, how many small cubes are there that have exactly one side red?
有6个棱长分别是4厘米、5厘米、6厘米的相同的长方体，把它们的某些面染上红色，使得6个长方体中染有红色的面恰好分别是1个面、2个面、3个面、4个面、5个面和6个面．染色后把所有长方体分割成棱长为1厘米的小正方体，分割完毕后，恰有一面是红色的小正方体最多有多少个？
<gadget id="calculator">1 * 1</gadget>
<output>1</output>

<gadget id="calculator">5 / 1</gadget>
<output>5</output>

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

<gadget id="calculator">5 * 4 * 2</gadget>
<output>40</output>

<gadget id="calculator">5 * 2 * 2</gadget>
<output>20</output>

<gadget id="calculator">40 + 20</gadget>
<output>60</output>

<gadget id="calculator">60 / 1</gadget>
<output>60</output>

<gadget id="calculator">60 * 3</gadget>
<output>180</output>

<gadget id="calculator">5 * 2 * 5</gadget>
<output>50</output>

<gadget id="calculator">3 * 2</gadget>
<output>6</output>

<gadget id="calculator">3 * 2 * 2</gadget>
<output>12</output>

<gadget id="calculator">3 * 4 * 2</gadget>
<output>24</output>

<gadget id="calculator">2 * 4 * 2</gadget>
<output>16</output>

<gadget id="calculator">30 + 180 + 50 + 6 + 12 + 24 + 16</gadget>
<output>318</output>

<result>318</result>