Little A has many strings, each with a character set of $$$\{1,2,\cdots,m\}$$$. He constructed a Trie for these strings and built an Aho-Corasick automaton from this Trie.
However, due to Little A's negligence, both the original strings and the constructed Aho-Corasick automaton have disappeared. Little A only remembers that the lengths of all original strings do not exceed $$$d$$$, and that the constructed Aho-Corasick automaton has $$$n$$$ vertices and a character set of $$$\{1,2,\cdots,m\}$$$.
Now, Little A wants to know how many different Aho-Corasick automatons could possibly be the one he constructed. Since the answer can be large, you only need to find the result modulo $$$998244353$$$.
The Aho-Corasick automaton is defined as follows:
Two Aho-Corasick automatons are considered the same if and only if they have the same number of vertices and there exist two labeling schemes for the vertices (let's assume they are two permutations of length equal to the number of vertices) such that:
A single line containing three integers $$$n,m,d$$$ ($$$1\leq n,m,d\leq 100$$$), representing the number of vertices in the Aho-Corasick automaton, the size of the character set, and the upper limit on the lengths of all strings.
A single line containing an integer representing the answer.
3 2 2
5
| Название |
|---|


