A five-digit number is composed of numbers 1, 2, and 3. It is required that 1, 2, and 3 appear at least once in each of these five-digit numbers. How many such five-digit numbers are there in total?
由数字1，2，3组成五位数，要求这五位数中1，2，3至少各出现一次，那么这样的五位数共有多少个？
<gadget id="calculator">3 ** 1</gadget>
<output>3</output>

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

<gadget id="calculator">60 + 90</gadget>
<output>150</output>

<result>150</result>