LearnPy Hub
← Arena
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
solution.py
Output appears here
Numbers With Different Digits · Python Arena problem · LearnPy Hub