Interesting Number#4965

Interesting Number

1 second
128 megabytes
Very easy

Tyomitch calls the number with digits (without leading zeroes) "interesting", if it's divisible by both the number formed from its first digits and the number formed from its last digits. For example, is "interesting" (divisible by and ) and is not. Tyomitch wants to know how many "interesting" -digit numbers exist. You are to help him.

Input

One integer ( ≤ ≤ ).

Output

Print the number of "interesting" -digit numbers.

Examples

Example 1

Loading
Loading