Faint

아직 제출이 없습니다시간 제한1초메모리 제한512 MB

문제

Consider the set of integers 1,2,,n\\{1, 2, \ldots, n\\} and all its subsets of size kk. Let us write each such subset as a_1,a_2,,a_ka\_1, a\_2, \ldots, a\_k where a_1<a_2<<a_ka\_1 < a\_2 < \ldots < a\_k. We write them down in lexicographical order row by row, obtaining a table with (nk){n \choose k} rows and kk columns. Let the jj-th integer in the ii-th row be A_i,jA\_{i, j}.

Your task is to calculate the sum of absolute differences between consecutive numbers in a given column. Formally, given a positive integer mm (1mk1 \le m \le k), calculate the sum _i=1(nk)1A_i,mA_i+1,m.\sum\limits\_{i = 1}^{{n \choose k} - 1} |A\_{i, m} - A\_{i + 1, m}|\text{.} As the answer can be very large, print it modulo 109+710^9 + 7.

입력

The only line of input contains three positive integers nn, kk and mm (1n106,1mkn1 \le n \le 10^6, 1 \le m \le k \le n).

출력

Print a single line with a single integer: the answer to the problem modulo 109+710^9 + 7.

힌트

In the first example, the table looks as follows.

12 13 14 23 24 34 \begin{array}{cc} 1 & 2 \\\ 1 & 3 \\\ 1 & 4 \\\ 2 & 3 \\\ 2 & 4 \\\ 3 & 4 \\\ \end{array}

The answer is 23+34+43+34+44=4|2 - 3| + |3 - 4| + |4 - 3| + |3 - 4| + |4 - 4| = 4.