Marisya, unlike Stepan, studies at the linguistic faculty of RuNU and clearly does not like mathematics or anything related to it. Like all her fellow students, she is afraid of numbers in which the absolute difference between any two consecutive digits is greater than (such are the quirks of linguists).
Stepan urgently needs to determine all the numbers that he can use without disturbing Marisya. However, there is very little time left before their meeting, so at the very least, count the number of -digit positive integers that Stepan can safely use with Marisya.
The input consists of a single line containing the integer (1 \leq N \leq 20).
Output a single integer — the count of -digit positive integers Stepan can use without causing distress to Marisya.
Example 1