The number A is 3 times that of B, the number C is 4 times that of B, the number D is half of C, and the sum of the four numbers is 1040. What is the number of dice?
甲数是乙数的3倍，丙数是乙数的4倍，丁数是丙数的一半，四个数的和是1040．丁数是多少？
<gadget id="calculator">4 / 2</gadget>
<output>2</output>

<gadget id="calculator">1 + 3 + 4 + 2</gadget>
<output>10</output>

<gadget id="calculator">1_040 / 10 / 2</gadget>
<output>52</output>

<gadget id="calculator">4 * 52</gadget>
<output>208</output>

<result>208</result>