Time limit
2s
Memory limit
512 MB
You are given three integers N, K, and D. Count the natural-number sequences A1,A2,…,AK of length K that satisfy all of the following conditions.
The first line contains three integers N, K, and D, separated by spaces.
Print the number of sequences satisfying the conditions, modulo 109+7.