IntermediateRating 1400
Numbers With Different Digits
Count the numbers x with 0 ≤ x < 10ⁿ whose digits are all different.
Input
One integer n (0 ≤ n ≤ 10).
Output
One integer.
Sample 1
Input
0
Output
1
Sample 2
Input
1
Output
10
Output appears hereOne integer n (0 ≤ n ≤ 10).
One integer.
0
1
1
10
Output appears here