There are 3 hamburgers and 4 hot dogs, take out some pieces, at least 1 piece for each type, and 3 pieces at most. How many different ways are there in total?
现有汉堡3个、热狗4个，从中拿出若干块，每种至少拿1块，最多拿3块．一共有多少种不同的拿法？
<gadget id="calculator">3 * 3</gadget>
<output>9</output>

<result>9</result>