We all know the tale of how Ali Baba overheard the magical phrase that opened the doors in the rock, granting him entry to the thieves' hideout. However, not many are aware that the entrance to the treasure chamber, where the thieves kept their stolen wealth, was secured by a mechanical combination lock. This lock required a code to be entered using wheels. Each wheel could be rotated to display a digit from to , but some wheels were stuck on a specific digit and could not be moved. Ali Baba only knew that for the correct code, the sum of any consecutive digits must be the same and equal to .
Your task is to determine how many different combinations Ali Baba needed to try in order to unlock the treasury.
The first line contains three integers: , , and (1 \leq N \leq 100, 1 \leq k \leq 6, 0 \leq S \leq 100). The second line contains characters without spaces, each representing the state of a wheel. The symbol «?» indicates that the wheel is functional and can be set to any digit, while any numeric symbol indicates that the wheel is stuck on that specific digit.
Output a single integer, the number of digit combinations that can be entered on the lock, such that the sum of any consecutive digits equals .
Example 1