The non-zero natural numbers composed of numbers 0, 2, and 8 (which can be used in full or incompletely) are arranged in ascending order. 2008 ranked number one.
由数字0、2、8(既可全用也可不全用)组成的非零自然数，按照从小到大排列．2008排在第多少个．
<gadget id="calculator">2 * 3</gadget>
<output>6</output>

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

<gadget id="calculator">2 + 6 + 18 + 3</gadget>
<output>29</output>

<result>29</result>