You are given integers $$$n$$$ and $$$m$$$.
Count the number of directed graphs $$$G$$$ without loops and multiple edges that satisfy all of the following:
Two graphs are considered different if there exist vertices with labels $$$u$$$ and $$$v$$$ such that the edge $$$u \to v$$$ exists in one graph, but not the other.
A simple cycle is a directed cycle that visits each vertex at most once.
The only line of the input contains two integers $$$n$$$ and $$$m$$$ ($$$1 \leq n, m \leq 10^6$$$).
Print the answer to the problem modulo $$$10^9+9$$$.
3 1
18
4 4
360
39847 348708
983575456
The phrase "without multiple edges" means that there can't be two different edges of the form $$$u \to v$$$. However, it is allowed to have an edge $$$u \to v$$$ and an edge $$$v \to u$$$.
| Name |
|---|


