Three-digit number#10213

Three-digit number

1 second
64 megabytes
Easy

How many unique three-digit numbers can be formed by using each digit of the given number exactly once?

Input

A single positive three-digit integer .

Output

Print the answer to the problem — the number of different three-digit numbers that can be formed.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading

Note

For example, from the number , you can create different three-digit numbers: , , , , , . However, from the number , you can only form distinct numbers: , , .