There is a class of six-digit numbers, the six numbers that make up each number are different from each other, and the two-digit number formed by any two adjacent numbers in each number can be divisible by 3. How many of these six-digit numbers are there?
有一类六位数，组成每个数的六个数码互不相同，并且每个数中任意两个相邻的数码组成的两位数都能被3整除．这类六位数共有多少个．
<gadget id="calculator">3 * 2 * 1</gadget>
<output>6</output>

<gadget id="calculator">6 * 6 * 2</gadget>
<output>72</output>

<result>72</result>