Cross out the 10 digits of the four numbers 1998, 998, 98, and 8 one by one. It is required to mark the smallest digit of the number with the largest number of digits first, and the smallest digit of the number with the same digits will be crossed out from the smaller first, so that How many different strokes are there?
将1998、998、98、8这四个数的10个数码一个一个划掉，要求先划位数最多的数的最小数码，位数相同的数从较小的优先依次划去最小数码，这样共有多少种不同的划法？
<gadget id="calculator">1 * 2 * 1</gadget>
<output>2</output>

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

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

<result>25</result>