A security system uses a -digit passcode with the following rules:
The first digit must be between and (inclusive).
The next two digits can be any number from to .
The last three digits can also be any number from to , except that all three digits cannot be the same (to avoid passcodes like , , etc.).
(i) How many different -digit passcodes are possible under these rules? (ii) Given that the system is used by million devices, are there enough available passcodes?