How many numbers#8381

How many numbers

1 second
128 megabytes
Easy

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?

Input

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

Output

Print the number of required positive integers.

Examples

Example 1

Loading
Loading

Example 2

Loading
Loading