How many unique three-digit numbers can be formed by using each digit of the given number exactly once?
A single positive three-digit integer .
Print the answer to the problem — the number of different three-digit numbers that can be formed.
Example 1
Example 2
For example, from the number , you can create different three-digit numbers: , , , , , . However, from the number , you can only form distinct numbers: , , .