N, d, K = map(int, input().split()) dp = [0] * (d * N + 1 + d) dp[0] = 1 for i in range(N): for j in range(d * N + 1, -1, -1): if dp[j] == 0: continue for k in range(1, d + 1): dp[j + k] += dp[j] dp[j + k] %= 1000000007 print(dp[K])