How many numbers#8381

How many numbers

1 सेकंड
128 मेगाबाइट
आसान

At the faculty of mathematics, Orhan was faced with the following problem: find the number of positive integers from to 10^n, in which all digits are different.

Since Orhan also goes to computer science classes at FizMat Lyceum, he easily wrote a program that calculates the answer. And can you do it?

इनपुट

One integer n~(1 \le n \le 18).

आउटपुट

Print the number of required positive integers.

उदाहरण

उदाहरण 1

Loading
Loading

उदाहरण 2

Loading
Loading