9.3. Vasya must write one digit on each face of several dice so that any ordered combination of three digits from 000 to 999 inclusive can be obtained by selecting some three different dice and placing them with the appropriate sides up in the correct order. At the same time, the digits 6 and 9 do not transform into each other when rotated 180 degrees. What is the minimum number of dice Vasya should use?