It is known that among the three-digit numbers, there are p three-digit numbers whose sum is a multiple of 6. Find the value of p.
已知在三位数中，数字之和是6的倍数的三位数共有p个，求p的值．
<gadget id="calculator">8 * 3</gadget>
<output>24</output>

<gadget id="calculator">16 * 6</gadget>
<output>96</output>

<gadget id="calculator">4 + 24 + 96 + 1 + 6 + 20</gadget>
<output>151</output>

<result>151</result>