Little Mirko is studying the hash function which associates numerical values to words. The function is defined recursively in the following way:
empty word word letter word letter
The function is defined for words that consist of only lowercase letters of the English alphabet. a
z
Some values of the hash function when
a
aa
kit
Mirko wants to find out how many words of length
Input Specification
The first line of input contains three integers
Output Specification
The first and only line of output must consist of the required number from the task.
Scoring
In test cases worth
Additionally, in test cases worth
Sample Input 1
1 0 10
Sample Output 1
0
Explanation for Sample Output 1
None of the characters in the alphabet has an ord value
Sample Input 2
1 2 10
Sample Output 2
1
Explanation for Sample Output 2
It is the word b
.
Sample Input 3
3 16 10
Sample Output 3
4
Explanation for Sample Output 3
Those are the words dxl
, hph
, lxd
and xpx
.
Comments