Cossack Vus and Addition
The renowned Cossack Vus has a lesser-known friend, Vozak Kus, who enjoys adding numbers in columns. However, much to his family's dismay, he often does it incorrectly.
Vozak Kus adds two numbers, and , each with digits, using the following method, starting from the last digits:
If there is a dot above the current digits, ignore it.
Add the corresponding digits of numbers and to obtain a number .
Write the last digit of in the corresponding position in the result.
If , place a dot above the previous digits.
Move to the previous digits and repeat from step .
For instance, using Vozak Kus's method, , and .
Cossack Vus is curious about how many pairs of numbers and , each of length , exist for which his friend calculates the sum correctly.
Note that numbers with leading zeros should not be counted. For example, the number for is invalid. Additionally, the pairs of numbers and are considered distinct.
Input
The first line contains a single integer ().
Output
Output a single number — the answer to the problem.
Examples
Note
Here are some examples of pairs of length : , , , , etc.